title: Could not cast value of type '__NSDictionaryM' (0x10b708d38) to 'NSMutableArray' (0x10b708978).And not able to see my data in collection view
body: <p>I am try to get data and display in my collection view.But when i try to display.I am getting some error.And not able to display.And also please look my json structure below.It look like under my data only i need to get the type name and have to display in my collection view.</p>
  
  <p>This is my first ios.Please help me out what problem i have.</p>
  
  <p>Here my code :</p>
  
  <pre><code>import UIKit
  
  class popVC: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate {
  
  
      var accessToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyIkX18iOnsic3RyaWN0TW9kZSI6dHJ1ZSwiaW5zZXJ0aW5nIjp0cnVlLCJnZXR0ZXJzIjp7InNvY2lhbF9saW5rcyI6e319L"
  
  
  
  
      var arrCol :NSMutableArray=[]
  
  
      override func viewDidLoad() {
          super.viewDidLoad()
           self.jsonParsingFromURL()
          // Do any additional setup after loading the view, typically from a nib.
  
      }
  // collection view delegate
  
      func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
          return arrCol.count
      }
  
      func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell {
          let cell: colvwCell = collectionView.dequeueReusableCellWithReuseIdentifier("Cell", forIndexPath: indexPath) as! colvwCell
  
  
           cell.lblCell.text = arrCol[indexPath.section] .valueForKey("type") as? String
  
          return cell
      }
  
  
  
      func jsonParsingFromURL () {
          let url = NSURL(string: "http://someurl/data?accessToken=\(accessToken)")
          let dataTask = NSURLSession.sharedSession().dataTaskWithURL(url!) { (data, response, error) -&gt; Void in
              print("done, error: \(error)")
  
              if error == nil
              {
  
                  dispatch_async(dispatch_get_main_queue()){
                      self.arrCol=(try! NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers)) as! NSMutableArray
  
                      print(self.arrCol)
  
                  }
  
              }
  
  
          }
          dataTask.resume()
      }
  
  
  
  }
  </code></pre>
  
  <p>Here my json structure :</p>
  
  <pre><code>   {
    "success": 1,
    "data": [
      {
        "_id": "56c8d71999e4d5cd268d9eca",
        "type": "park",
  
      },
      {
        "_id": "56cbeb01425448492ad528ce",
        "type": "medical",
  
  
      },
      {
        "_id": "56cbeb9d6deb684f2a140e5e",
        "type": "home",
  
      },
      {
        "_id": "56cbec2beff2bf552a0447c4",
        "type": "kitchen",
  
      },
      {
        "_id": "56cbed2e1c856c672a302ce4",
        "type": "bloare",
  
      }
    ]
  }
  </code></pre>