Cast to a static array of same dimension, but different element type.
Vec2i intVec = [1, 2]; auto floatVec = cast(Vec2) intVec; assert(floatVec == Vec2(1f, 2f)); assert(floatVec == intVec); auto floatArray = cast(float[2]) intVec; assert(floatArray == [1f, 2f]); assert(floatArray == intVec);
See Implementation
Cast to a static array of same dimension, but different element type.