https://issues.dlang.org/show_bug.cgi?id=11257 --- Comment #3 from Walter Bright <bugzilla at digitalmars.com> --- I can't agree with this. A cast should be used to break out of const, and should not be allowed in @safe code. --