Type conversion from str to int for input upc.