SciPy

numpy.ndarray.__int__

ndarray.__int__() <==> int(x)