title: Swift: Could not cast value of type '__NSCFArray' to 'NSDictionary'
body: <p>I have JSON data from website. I made the main dictionary and I can parse every data except one sub dictionary. I get the error "Swift: Could not cast value of type '__NSCFArray' to 'NSDictionary'"</p>
  
  <p>This example of my data. I cannot parse <strong>"weather"</strong> but I can parse all other dictionaries like <code>"wind"</code>.</p>
  
  <pre><code>   ["name": Mountain View, "id": 5375480, "weather": (
          {
          description = "sky is clear";
          icon = 01n;
          id = 800;
          main = Clear;
      }
  ), "base": cmc stations, "wind": {
      deg = "129.502";
      speed = "1.41";
  </code></pre>
  
  <p>Snippet of code</p>
  
  <pre><code> let windDictionary = mainDictionary["wind"] as! [String : AnyObject
   let speed = windDictionary["speed"] as! Double
   print(speed)
   let weather = mainDictionary["weather"] as! [String : AnyObject]
   print(weather)
  </code></pre>