Converts the vector to the given one, mantaining the variables's value when possible.
assert(cast(Vector2!int)vector(.1, .1, 14) == vector(0, 14)); assert(cast(Vector4!real)vector(.5, 100) == vector(.5, 0, 100, 0)); // this will only return the vector assert(cast(Vector2!int
See Implementation
Converts the vector to the given one, mantaining the variables's value when possible.