new method: NArray.cast