         ]
 
         if let dict = person.toJSONObject() as? JSONDictionary {
-            XCTAssertEqual(dict["name"] as! String, "lancy", "my name is lancy")
+            XCTAssertEqual((dict["name"] as! String), "lancy", "my name is lancy")
             if let singers = dict["preferNumbers"] as? JSONDictionary {
-                XCTAssertEqual(singers["0"] as! Int, 1, "1")
-                XCTAssertEqual(singers["1"] as! Int, 2, "2")
-                XCTAssertEqual(singers["2"] as! Int, 4, "4")
-                XCTAssertEqual(singers["3"] as! Int, 8, "8")
-                XCTAssertEqual(singers["4"] as! Int, 16, "16")
-                XCTAssertEqual(singers["5"] as! Int, 32, "32")
-                XCTAssertEqual(singers["6"] as! Int, 64, "64")
+                XCTAssertEqual((singers["0"] as! Int), 1, "1")
+                XCTAssertEqual((singers["1"] as! Int), 2, "2")
+                XCTAssertEqual((singers["2"] as! Int), 4, "4")
+                XCTAssertEqual((singers["3"] as! Int), 8, "8")
+                XCTAssertEqual((singers["4"] as! Int), 16, "16")
+                XCTAssertEqual((singers["5"] as! Int), 32, "32")
+                XCTAssertEqual((singers["6"] as! Int), 64, "64")
             } else {
                 XCTFail("JSON Object of friends friend should be a [JSONDictionary]")
             }

        let person = Person(name: "God")
        person.sex = .Female
        if let dict = person.toJSONObject() as? JSONDictionary {
            XCTAssertEqual(dict["sex"] as! Int, Sex.Female.rawValue, "God is a girl")
        } else {
            XCTFail("JSON Object of Person should be a dictionary")
        }

        person.adult = true

        if let dict = person.toJSONObject() as? JSONDictionary {
            XCTAssertEqual((dict["name"] as! String), "lancy", "my name is lancy")
            XCTAssertEqual((dict["age"] as! Int), 23, "I'm 23")
            XCTAssertEqual((dict["birthday"] as! Double), 14, "my birthday is 14")
            XCTAssertEqual((dict["weight"] as! Float), 60, "weight 60!")
            XCTAssertEqual((dict["adult"] as! Bool), true, "i'm an adult")
        } else {
            XCTFail("JSON Object should be a dictionary")
        }
