Check that input is of type integer; if not, assert that it only contains whole numbers and convert to integer type

check_int(input)