title: Swift 1.2 [AnyObject] does not have member named 'objectForKey'
body: <p>After upgrading to Swift 1.2, I got an error:</p>
  <pre><code>[AnyObject] does not have member named 'objectForKey'
  </code></pre>
  <p>Code:</p>
  <pre><code>self.photoNames = objects.map { $0.objectForKey(&quot;PhotoName&quot;) as! String }
  </code></pre>
  <p>Where <code>objects</code> is type <code>[AnyObject]</code></p>
  <h3>Edit: (more code)</h3>
  <pre><code>var photoNames: [String] = []
  var query = PFQuery(className: &quot;Photos&quot;)
  query.findObjectsInBackgroundWithBlock ({(objects:[AnyObject]?, error: NSError?) in
      if(error == nil){
          self.photoNames = objects.map { $0.objectForKey(&quot;PhotoName&quot;) as! String }
      }
      else{
          println(&quot;Error in retrieving \(error)&quot;)
      }
          
  })
  </code></pre>