Added astype to ndarray

For some of my work, I needed to use astype(), so I've gone ahead and exposed that function through the ndarray class.

If there's a better way I could have done this, please let me know how I can fix up this commit. Thanks!