That was pure cargo-culting. Many (all?) calls to PyInt_FromLong() with an int argument in the code base have that cast, so I kept it here as well. I'm pretty sure it's not needed, too.