title: anyobject does not have a membered named objectforkey in SWIFT
body: <p>I am trying to get the <code>objectForKey</code> from a notifaction, although I am getting the error: <code>anyobject does not have a membered named objectforkey</code></p>
  
  <p>The code I am using is:</p>
  
  <pre><code>func executeAlbum(notification:NSNotification){
          let data = notification.userInfo.objectForKey("data") as [AlbumModel] // ERROR HERE
          self.sources = data
          self.albumTable?.reloadData()
      }
  </code></pre>
  
  <p>Can anybody tell me why it won't work and what the equivalent is?</p>
  
  <p>Thanks</p>