How to convert ctypes' c_long to Python's int?

ctypes, python

Solution

>>> ctypes.c_long(1).value
1

Problem

`int(c_long(1))` doesn't work.

Original source