title: Could not cast value of type '__NSArrayM' (0x34df0900) to 'NSDictionary' SWIFT
body: <p>When decoding JSON response from webservice I get an error saying:</p>
  
  <pre><code>Could not cast value of type '__NSArrayM' (0x34df0900) to 'NSDictionary'
  </code></pre>
  
  <p>I tried out so many solutions found in StackOverflow too, but nothing works.</p>
  
  <p><strong>My Code :</strong> </p>
  
  <pre><code>let jsonData:NSDictionary = (NSJSONSerialization.JSONObjectWithData(urlData!, options:NSJSONReadingOptions.MutableContainers , error: &amp;error) as? NSDictionary)!
  
  let success:NSInteger = jsonData.valueForKey("success") as! NSInteger
  </code></pre>
  
  <p><strong>Response from the Web Service:</strong></p>
  
  <pre><code>[
      {
          "id": "1",
          "title": "bmw",
          "price": "500.00",
          "description": "330",
          "addedDate": "2015-05-18 00:00:00",
          "user_id": "1",
          "user_name": "CANOVAS",
          "user_zipCode": "32767",
          "category_id": "1",
          "category_label": "VEHICULES",
          "subcategory_id": "2",
          "subcategory_label": "Motos",
          "bdd": {}
      }
  ]
  </code></pre>
  
  <p>Thank you for your help</p>