         XCTAssertNil(no.doubleCol)
         XCTAssertNil(no.boolCol)
 
-        realm.transactionWithBlock {
+        try! realm.transactionWithBlock {
             no.intCol = 1.1
             no.floatCol = 2.2 as Float
             no.doubleCol = 3.3

    func testOptionalNSNumberProperties() {
        let realm = realmWithTestPath()
        let no = SwiftOptionalNumberObject()
        XCTAssertEqual([.Int, .Float, .Double, .Bool], map(no.objectSchema.properties) { $0.type })

        XCTAssertEqual(1, no.intCol!)
        XCTAssertEqual(2.2 as Float, no.floatCol!)
        XCTAssertEqual(3.3, no.doubleCol!)
        XCTAssertEqual(true, no.boolCol!)

        realm.transactionWithBlock {
            realm.addObject(no)
            no.intCol = nil
            no.floatCol = nil

        XCTAssertNil(firstObj.optBinaryCol)
        XCTAssertNil(firstObj.optDateCol)

        try! realm.transactionWithBlock {
            firstObj.optObjectCol = SwiftBoolObject()
            firstObj.optObjectCol!.boolCol = true

