Cast argument to integer.