I am trying to receive a string from Parse in swift but I get an error saying:
AnyObject is not convertible to String
Here is my code:
var query = PFQuery(className:"NewsClass")
query.getObjectInBackgroundWithId("5tZMCa5XyX") {
(news3: PFObject?, error: NSError?) -> Void in
if error == nil && news3 != nil {
println(news3)
let description3 = news3["Description"] as! String
} else {
println(error)
}
}