ENH Convert numeric arguments to int

This seems to be version specific, but it crashed on some Pythons.