I have a c function being called from python. Python gives the function an integer, but I would like to use it as another data type in C. I am currently using
PyArg_ParseTuple (args, "i", &value)
and then manually doing a cast on value.
Is there a way to do this cast through PyArg?