### Describe the issue: converting integers to np.datetime64 fails for numpy np.int64 integers. ```python np.datetime64(np.int64(123), 'ns') # ValueError: Could not convert object to NumPy datetime np.datetime64(123, 'ns') # ok ``` ### Reproduce the code example: ```python np.datetime64(np.int64(123), 'ns') # ValueError: Could not convert object to NumPy datetime np.datetime64(123, 'ns') # ok ``` ### Error message: ```shell np.datetime64(np.int64(123), 'ns') *** ValueError: Could not convert object to NumPy datetime ``` ### NumPy/Python version information: 1.23.2 3.8.10 (default, Jun 22 2022, 20:18:18) [GCC 9.4.0] ### Context for the issue: _No response_