Example to convert the type of an array using the astype method