title: Initializer for conditional binding must have Optional type, not '[String : Any]'
body: <p>Can anyone tell me how to fix this? Im just trying to receive signals from thing speak. </p>
  
  <pre><code>   `self.title = "Home"
      print("Requesting data...")
      Alamofire.request( "https://api.thingspeak.com/channels/290427/feeds.json", parameters: ["results": "1", "location": "false"]) // Gets the latest info from ThingSpeak
          .responseJSON { response in
  
              print("Data downloaded: \(response.result)")
              if let json = response.result.value as! [String:Any] {
                  print(json) //see full data
  
                  if let feeds = json["feeds"] as? [String: Any] {
  
                      for feed in feeds {
                          print(feed["field2"])
                          if let temperatureStr = feed["field2"] as? String, let dateStr = feed["created_at"] as? String {
                              if let temperature = Double(temperatureStr){
                                  self.label.text = "Temperature: \(temperature)°F" //Displays last updated data entry
  
                              }
  </code></pre>
  
  <p>The error is in the line </p>
  
  <pre><code>if let json = response.result.value as! [String:Any] {
  </code></pre>
  
  <p>Error message says "Initializer for conditional binding must have Optional type, not '[String : Any]'</p>