title: Could not cast value of type '__NSSingleObjectArrayI' to 'NSDictionary'
body: <p>I am trying to check the version of my app with the iTunes lookup api. I have problems in parsing the response. Please find the code</p>
  
  <pre><code>static func needsUpdate() -&gt; Bool
  {
      do {
          let infoDictionary = Bundle.main.infoDictionary
          let appID = infoDictionary?["CFBundleIdentifier"]
          let url:URL = URL(string: "http://itunes.apple.com/lookup?bundleId=\(appID!)")!
          let data = try Data(contentsOf: url)
          let lookup = try JSONSerialization.jsonObject(with:data, options: []) as! [String:AnyObject]
  
          print(lookup)
  
          let resultCount:Int = lookup["resultCount"] as! Int
  
          if (resultCount == 1)
          {
              var results = lookup["results"] as! [String:AnyObject]  // ***Error***
  
              if results.isEmpty
              {
                  print(results)
              }
          }
  
      } catch
      {
  
      }
      return true
  }
  </code></pre>
  
  <p>Please let me know how can i parse this response</p>