Replace assert with NSAssert