[mypyc] Make explicit conversions i64(x) and i32(x) faster (#14504)
These behave the same as `int(x)` and we want them to be no slower than
the corresponding `int` conversions. Optimize them for bool, float, str
and RInstance arguments.
Work on mypyc/mypyc#837.