                 
                 var dict:Dictionary<String, AnyObject>!
                 
-                dict = data as Dictionary<String, AnyObject>
+                dict = data as! Dictionary<String, AnyObject>
                 
                 if (dict["code"] != nil) {
                     println("error code present!")

                
                var dict:Dictionary<String, AnyObject>!
                
                dict = data as Dictionary<String, AnyObject>
                
                if (dict["code"] != nil) {
                    println("error code present!")

                    }
                    
                    // check it's the right constituency too!
                    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!
