__ArrayCast

fnTTo[] __ArrayCast(TFrom, TTo)(return scope TFrom[] from) @nogc pure @trusted

The compiler lowers expressions of cast(TTo[])TFrom[] to this implementation. Note that this does not detect alignment problems.

Parameters

fromthe array to reinterpret-cast

Returns

from reinterpreted as TTo[]