                 }
                 dispatch_semaphore_signal(semaphore)
                 while object.intCol < stopValue {
-                    NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture() as! NSDate)
+                    NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture())
                 }
                 realm.removeNotification(token)
             }

    func testManualDeletion() {
        inMeasureBlock {
            let realm = self.copyRealmToTestPath(mediumRealm)
            let objects = map(realm.objects(SwiftStringObject)) { $0 }
            self.startMeasuring()
            realm.write {
                realm.delete(objects)

            self.startMeasuring()
            realm.write { _ = object.intCol++ }
            while object.intCol < stopValue {
                NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture())
            }
            dispatch_sync(queue) {}
            self.stopMeasuring()
