Changing more .view to .astype