Automatic Type Casting In Numpy