I don't have a quick repro demo yet, but the result is this: std.conv.ConvError: There is no corresponding enum member name in const(myEnum) It would be very nice to add the actual value encountered. Quick incomplete/untested mockup: enum A { a = 1 } writef("%s", cast(A)2);
Fixed by rsinfu in: http://www.dsource.org/projects/phobos/changeset/1961