This PR fixes new deprecation errors caused by certain types of conversions to out-of-bounds integers to integer arrays.
The error is as follows:
DeprecationWarning: NumPy will stop allowing conversion of out-of-bound Python integers to integer arrays. The conversion of 255 to int8 will fail in the future.
For the old behavior, usually:
np.array(value).astype(dtype)`
will give the desired result (the cast overflows).
This PR fixes new deprecation errors caused by certain types of conversions to out-of-bounds integers to integer arrays.
The error is as follows: