I am making a chat app. I am having a problem while accessing an array of objects via indexPath(row) of a tableViewController. It is giving me an error: " Cannot subscript a value of type '[AnyObject]?'" The code is below. How do I fix this?
var user1 = PFUser.currentUser()
var user2 = self.objects[indexPath.row] as! PFUser