aha! I didn't know about ``np.integer`` - that's exactly what I was looking for.  It also works with `np.uintN`, so even better.  Thanks @mdboom !