If arg is an integer value, returns arg, otherwise converts arg to integer by rounding and returns the converted value.