title: POST request using alamofire 2.0 and Swift 2.0
body: <p>I try to create a basic function that send a POST request using Alamofire.</p>
  
  <pre><code>@IBAction func createBasicAccount(sender: AnyObject)
  {
      var firstNameToSend = firstName.text
      var lastNameToSend = lastName.text
      var mailAddressToSend = mailAddress.text
      var passwordToSend = password.text
      var parametersToSend = [
          "firstName": firstNameToSend,
          "lastName": lastNameToSend,
          "mailAddress": mailAddressToSend,
          "password": passwordToSend
      ]
  
      print("Account creation")
  
      Alamofire.request(.POST, postEndpoint, parameters: parametersToSend, encoding: .JSON)
  }
  </code></pre>
  
  <p>But the <code>Alamofire.request</code> won't compile and compiler returns:</p>
  
  <pre><code>Cannot convert value of type '[String : String?]' to expected argument type '[String : AnyObject]?'
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>Alamofire.request(.POST, postEndpoint, parameters: parametersToSend as! AnyObject as? [String : AnyObject], encoding: .JSON)
  </code></pre>
  
  <p>But fails:</p>
  
  <pre><code>Account creation
  Could not cast value of type 'Swift.Dictionary&lt;Swift.String, Swift.Optional&lt;Swift.String&gt;&gt;' (0x11fdb1038) to 'Swift.AnyObject' (0x12035b018).
  </code></pre>
  
  <p>I'm using <em>Swift 2.0</em>, <em>Xcode 7.0 GM Seed</em>, <em>iOS 8.4</em> &amp; <em>Alamofire 2.0</em></p>