title: Cast from 'Data?' to unrelated type '[String : Any]' always fails
body: <blockquote>
    <p>Cast from 'Data?' to unrelated type '[String : Any]' always fails</p>
  </blockquote>
  
  <p>Here, I am trying to fetch the response from Api and using alamofire for the first time but i am getting above warning please help me out</p>
  
  <pre><code>guard let json = response.result.value as? [String: Any] else {
      print("Didn't get todo object as JSON from API")
      if let error = response.result.error {
          print("Error: \(error)")
      }
      return
  }
  </code></pre>
  
  <p>what shall I change if any please help.</p>