Nice one :) -- though will keep Integer(), it is more reliable than to_i -- Integer(nil) raises an exception, nil.to_i == 0