This will fail for ints that are "non-native" size.  (i.e. it only works for 64-bit on a 64-bit machine).  I think `np.integer` is the base class of all Numpy integer types, though.