Extract opaque type name compiletime

I am trying to get the name of a opaque type to set a constant value during compile time. I have tried macros and inline defs without success. I get the runtime class name of the underlying type.
Is there any way to do this? Is it even possible?

I don’t understand what it is you’re trying to do — maybe you could explain with an example?