type-cast input to XCTAssertEqual. refs #1