how to change the dtype of an np.ndarray to int64 code example Example: change type of array python arr=arr.astype('uint8')