Integer() or Float() let you do cool things like this:
def is_int?(x)
Integer(x); true; rescue; false
end
Which will let you know if some input passed can be safely converted to an integer.