Cython: Only cast with explicit base in case we have a string. if it's
an int already, just take it.