title: Swift: cannot convert value of type <> to expected argument type <> when setting up a selector
body: <p>I'm getting this error:</p>
  
  <blockquote>
    <p>cannot convert value of type nsdictionary to expected argument type string</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/rKITj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rKITj.png" alt="enter image description here"></a>
  <br>
  Here is my code:</p>
  
  <pre><code>let json:NSDictionary = try JSONSerialization.jsonObject(with: dataResponse, options: []) as! NSDictionary
  self.performSelector(onMainThread: Selector(updateUIwithJsonResponse), with: json, waitUntilDone: true)
  </code></pre>
  
  <p><code>performSelector</code> is calling this function: </p>
  
  <pre><code>func updateUIwithJsonResponse(json:NSDictionary) {
  print(json)
  }
  </code></pre>
  
  <p>Any of you knows why I'm getting this error?</p>