Minor fixes; cast does not copy the array unless necessary
NumPy conversion methods