Then i try to convert a key from PFObject to a String it gives me a error. I can't find anything on Parses website. Please help
var findProgram = PFQuery(className: "Programs")
findProgram.getObjectInBackgroundWithId(data["program"] as! String!, block: { (object: PFObject?, error) -> Void in
if error == nil {
var objects = object["name"] as! String
print(objects)
self.programUpdated.append(object?.createdAt as NSDate!)
}
})
I think this is what you're going to have to do, try this:
You shouldn't get an error after that.
Good luck!