Made cast function unwrap internally

Closes https://github.com/PistonDevelopers/vecmath/issues/193