python list automatically changes type to numpy.ndarray code example Example: change type of array python arr=arr.astype('uint8')