I fear the problem lies a bit deeper within the type system, and semantics of to_i vs. to_int
IMHO: "1".to_i is 1, but "1".to_int is MissingMethod exception