Swift AnyObject is not convertible to String/Int
In Swift, String and Int are not objects. This is why you are getting the error message. You need to cast to NSString and NSNumber which are objects. Once you have these, they are assignable to variables of the type String and Int. I recommend the following syntax: if let id = reminderJSON[“id”] as? NSNumber … Read more