Return a number when the input is of type number.