I've put together an RFC proposing a new trait in
core for converting types to their underlying type (specifically for converting primitive enums to their underlying repr, but not limited to that case). I'm particularly interested in this as a step towards making
as conversions less prevalent in the language, but it stands alone as a proposal.
I'd be interested in feedback and bikeshedding, either on the PR, or in this thread.