use view rather than astype