Changing AND to OR in conversion function parameter check