What? to_int is not defined? Dafuq?