Fixes Issue 8143 - std.conv.to for enum conversions.