Fix dtype of array