title: binary operator '==' cannot be applied to operands of type NSDictionary and String in swift 3
body: <pre><code>let contributor:NSDictionary! = (userProfile["Contributor"] as? NSDictionary)
  
      var contributorid:String!
  
      if contributor == nil || contributor == " "{
  
          contributorid = nil
      }
      else
      {
          contributorid = contributor.value(forKey: "id") as? String
      }
  </code></pre>
  
  <p>The above code was in swift 2.0  and after converting to swift 3 i'm getting error in 'if' condition as binary operator '==' cannot be applied to operands of type NSDictionary and String    Please help me to find the solution.... Thanks</p>