Use numpy.can_cast
instead of casting and checking
#7834
Closed
numpy.can_cast
instead of casting and checking
#7834