Could not cast value of type 'NSTaggedPointerString' to 'NSArray in Google Place Api
<p>i integrated Google Place Api to fetch user location, i have to fetch "area","state" and "City" while i try to get value my App gets crash. Please post ur answer</p>

<p>here my sample code</p>

<pre><code>func mapView(mapView: GMSMapView, idleAtCameraPosition position: GMSCameraPosition)
{
    dispatch_async(dispatch_get_main_queue(), { () -&gt; Void in
        let centerLocation = CLLocation(latitude: position.target.latitude, longitude: position.target.longitude)
        CLGeocoder().reverseGeocodeLocation(centerLocation, completionHandler:
            {(placemarks, error) in
            if (error == nil &amp;&amp; placemarks!.count&gt;0)
            {

                let placemark = CLPlacemark(placemark: placemarksArray[0] as! CLPlacemark)

                let latitude = String(format: "%.8f",position.target.latitude)
                let longitude = String(format: "%.8f",position.target.longitude)


                if let addrList = placemark.addressDictionary
                {

                    print("address==\(address)")
                    let addStr  = address?["FormattedAddressLines"] as! [String]

                    let addStr1  = address?["City"] as! [String]
                    let addStr2  = address?["State"] as! [String]
                    let addStr3  = address?["SubLocality"] as! [String]

                    NSLog("%@\n%@\n%@", addStr1,addStr2,addStr3)
                    self.addressLabel.text = addStr.joinWithSeparator(",")



                }
            }
        })
    })
}
</code></pre>

<p>my output :</p>

<pre><code>address=={
City = "New Delhi";
Country = India;
CountryCode = IN;
FormattedAddressLines =     (
    "Mayur Vihar",
    "New Delhi",
    "Delhi 110092",
    India
);
Name = 110092;
State = Delhi;
SubAdministrativeArea = Delhi;
SubLocality = "Mayur Vihar";
ZIP = 110092;
</code></pre>

<p>}</p>

<p>and my Crash Report :</p>

<pre><code> Could not cast value of type 'NSTaggedPointerString' (0x1064cb860) to 'NSArray' (0x1064cb900).
</code></pre>