`int`/`uint` have been renamed to `size`/`usize`, so `to_int`/`to_uint` should probably be renamed to `to_size`/`to_usize`.