https://issues.dlang.org/show_bug.cgi?id=24582
--- Comment #3 from Nick Treleaven <[email protected]> --- bool v = cast(bool) 2; ubyte[] a = [2, 4]; auto b = cast(bool[]) a; auto c = cast(bool[]) [2, 4]; // literal cast import std.stdio; writeln(*cast(byte*)&v); // 1, OK writeln(*cast(byte*)b.ptr); // 2, unsafe writeln(*cast(byte*)c.ptr); // 1, OK So only the runtime array cast is unsafe. --
