                     }
                     
                     // check it's the right constituency too!
-                    var c = standingDetails?.objectForKey("post_id") as NSString
+                    var c = standingDetails?.objectForKey("post_id") as! NSString
                     
                     if c.integerValue != constituency.idNumber {
                         // they're not standing in our constituency for this election... ignore them!

                
                // get associated name info from the object dict's "name" key...
                var dict:Dictionary<String, AnyObject> = dataSet[key]!
                var constituencyName:String = dict["name"] as String
                
                // instanciate our Constituency
                var constituency:Constituency = Constituency(constituencyId: constituencyId)

                    
                    // they're standing this year!
                    // let's instanciate a candidate object for them, and add relevant information...
                    var name = personInfo["name"] as! String
                    var partyMemberships = personInfo["party_memberships"] as! NSDictionary
                    var partyName = partyMemberships.objectForKey("2015")?.objectForKey("name") as! NSString
                    var candidate:Candidate = Candidate(name: name, party: partyName as String)

                    array.append(candidate)
                }
