title: Alamofire Contextual type anyobject cannot be used with dictionary literal
body: <p>I am invoking a POST request where I provide the params, url from another method and get the error:</p>
  
  <pre><code>Contextual type anyobject cannot be used with dictionary literal
  </code></pre>
  
  <p>This is how I invoke and get the error here:</p>
  
  <pre><code>API.sharedInstance.post(NSURL(string: baseURL)!, params: ["name":  val, "owner": "John"])
  </code></pre>
  
  <p>Here is my <code>Alamofire</code> code:</p>
  
  <pre><code>func post(url: NSURL, params: AnyObject) {
  
      Alamofire.request(.POST, baseURL, parameters: params as! [String : AnyObject])
          .validate()
          .responseJSON { response in
              switch response.result {
              case .Success:
                  print("Validation Successful")
                  print("response = \(response)")
              case .Failure(let error):
                  print(error)
              }
      }
  
  }
  </code></pre>