Use Integer() instead of to_i