         let person = Person(name: "siri")
         person.orientation = [.Male, .Female, .Unknown]
         if let dict = person.toJSONObject() as? JSONDictionary {
-            XCTAssertEqual(dict["name"] as! String, "siri", "my name is siri")
+            XCTAssertEqual((dict["name"] as! String), "siri", "my name is siri")
             if let orientation = dict["orientation"] as? [Int] {
-                XCTAssertEqual(orientation[0] as! Int, Sex.Male.rawValue, "siri likes male!")
-                XCTAssertEqual(orientation[1] as! Int, Sex.Female.rawValue, "siri also likes female!")
-                XCTAssertEqual(orientation[2] as! Int, Sex.Unknown.rawValue, "and siri likes all others!")
+                XCTAssertEqual(orientation[0], Sex.Male.rawValue, "siri likes male!")
+                XCTAssertEqual(orientation[1], Sex.Female.rawValue, "siri also likes female!")
+                XCTAssertEqual(orientation[2], Sex.Unknown.rawValue, "and siri likes all others!")
             } else {
                 XCTFail("JSON Object of orientation should be a [Int]")
             }

        ]

        if let dict = person.toJSONObject() as? JSONDictionary {
            XCTAssertEqual(dict["name"] as! String, "lancy", "my name is lancy")
            if let singers = dict["favouredSingers"] as? JSONDictionary {
                XCTAssertEqual((singers["first"] as! JSONDictionary)["name"] as! String, "sia", "sia the best!")
                XCTAssertEqual((singers["second"] as! JSONDictionary)["name"] as! String, "lana", "lana go lana!")
            } else {
                XCTFail("JSON Object of friends friend should be a JSON dictionary")
            }

        person.luckyNumbers = [8, 14, 55]

        if let dict = person.toJSONObject() as? JSONDictionary {
            XCTAssertEqual((dict["name"] as! String), "lancy", "my name is lancy")
            if let friends = dict["luckyNumbers"] as? [Int] {
                XCTAssertEqual(friends[0], 8, "lucky 8!")
                XCTAssertEqual(friends[1], 14, "lucky 14!")
