BUG: Fixed bug to convert a ndarray to dtype int32
- [x] closes #58586 
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.