title: Heterogeneous collection literal could only be inferred to '[String : Any]'; add explicit type annotation if this is intentional
body: <p>I have a POST body paramter like this:</p>
  
  <pre><code>{
    "id": 0,
    "name": "string",
    "contactInfo": "string",
    "message": "string"
  }
  </code></pre>
  
  <p>So since i am using the Alamofire for posting the parameters i am describing the post body dictionary like this:</p>
  
  <pre><code>let body = ["id": userID, "name": userName, "contactInfo": contactInfo, "message": message]
  
  class func postUserFeedback(userID: Int, userName: String, contactInfo: String, message: String,completionHandler: @escaping (FeedbackResponse?) -&gt; Void) {
      let body = ["id": userID, "name": userName, "contactInfo": contactInfo, "message": message]
      request(route: .userFeedback, body: body).responseObject { (response: DataResponse&lt;FeedbackResponse&gt;) in
  
        response.result.ifSuccess({
          completionHandler(response.result.value)
        })
  
        response.result.ifFailure {
          completionHandler(nil)
        }
      }
  
    }
  </code></pre>
  
  <p>But i am getting the error like this:
  <a href="https://i.stack.imgur.com/hOKB9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hOKB9.png" alt="Error screenshot"></a></p>
  
  <p>What i am doing wrong in this syntax?</p>