title: NSDictionary init with multiple objects and keys
body: <p>I've been recently trying to figure out how to init a Dictionary in swift like i used to do in Objective-c:</p>
  
  <pre><code>NSMutableDictionary *loginDictionary = [[NSMutableDictionary alloc] initWithObjects:@[UsernameTextfield.text,PasswordTextfield.text] forKeys:@[@"username",@"password"];
  </code></pre>
  
  <p>i tried to write it in Swift :</p>
  
  <pre><code>let userDictionary = NSMutableDictionary.init(object: [usernameTextField.text,passwordTextField.text], forKey: ["username","password"])
  </code></pre>
  
  <p>But i get an error:</p>
  
  <blockquote>
    <p>Contextual type AnyObject cannot be used with array literal.</p>
  </blockquote>