         // Do any additional setup after loading the view, typically from a nib.
         
         let client = MSClient(applicationURLString: "ZUMOAPPURL", gatewayURLString: "ZUMOGATEWAYURL", applicationKey: "ZUMOAPPKEY")
-        let managedObjectContext = (UIApplication.sharedApplication().delegate as AppDelegate).managedObjectContext!
+        let managedObjectContext = (UIApplication.sharedApplication().delegate as! AppDelegate).managedObjectContext!
         let store = MSCoreDataStore(managedObjectContext: managedObjectContext)
         client.syncContext = MSSyncContext(delegate: nil, dataSource: store, callback: nil)
         
-        self.table = client.syncTableWithName("TodoItem")!
+        self.table = client.syncTableWithName("TodoItem")
         self.refreshControl?.addTarget(self, action: "onRefresh:", forControlEvents: UIControlEvents.ValueChanged)
         
         var error : NSError? = nil

                            opError.cancelOperationAndDiscardItemWithCompletion(nil)
                        } else {
                            println("Update failed, reverting to server's copy")
                            opError.cancelOperationAndUpdateItem(opError.serverItem, completion: nil)
                        }
                    }
                }

            (item, error) in
            UIApplication.sharedApplication().networkActivityIndicatorVisible = false
            if error != nil {
                println("Error: " + error!.description)
            }
        }
    }
