Removing warnings of type comparison