Z = np.arange(10,dtype=np.float32)
Z = Z.astype(np.int32,copy=False) #astype
print(Z)
[0 1 2 3 4 5 6 7 8 9]