use to_i for 1.4 support