import numpy as np
# Create a float (32 bits) array
x = np.array([1.1, 2.2, 3.3, 4.4], dtype=np.float32)
# Convert the float array into an integer array using view() method
x = x.view(dtype=np.int32)
print(x.dtype)
print(x)