__ArrayCast

The compiler lowers expressions of cast(TTo[])TFrom[] to this implementation.

TTo[]
__ArrayCast
@nogc pure @trusted
(
TFrom
TTo
)
(
TFrom[] from
)

Parameters

from
Type: TFrom[]

the array to reinterpret-cast

Return Value

Type: TTo[]

from reinterpreted as TTo[]

Suggestion Box / Bug Report