Fix type casting on search when trying to search by number