 <p>Make sure your Class name field is actually <strong>Module</strong>.Task, where <strong>Module</strong> is the name of your app. CoreData classes in Swift are namespaced. Right now, your object is being pulled out of the context as an NSManagedObject, not as a Task, so the as-cast is failing.</p>