NumPy > Change array datatype

Name
Code
Output
array = numpy.random.random((2,3))
print ("original data type: ",array.dtype.name)
array = array.astype(numpy.int64)
print ("new data type: ",array.dtype.name)

# NumPy Datatypes 
# BOOLEAN TYPES: 
# bool_
# INTEGER TYPES: 
# int_, intc, intp, int8, int16, int32, int64
# UNSIGNED INTEGER TYPES: 
# uint8, uint16, uint32, uint64
# FLOATING POINTS TYPES: 
# float_, float16, float32, float64
# COMPLEX NUMBER TYPES: 
# complex_, complex64, complex128
original data type:  float64
new data type:  int64