TEST: Add test to check safe cast between UInt32 and np.uint32
PR from the SciPy 2023 Sprint session. @noatamir @phofl 

I implemented a test to check that the casting from `float` type to `UInt32` pandas type raises an error.

This should be raising an error, as it is expected that Pandas types do not allow for casting to types that would remove information.
This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. 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.