Cast an UInt to the type of this Enum
Cast an UInt to the type of this Enum
the UInt to cast
the equivalent Enum to the value of the cast UInt
will give a Chisel elaboration time warning if the argument could hit invalid states
Safely cast an UInt to the type of this Enum
Safely cast an UInt to the type of this Enum
the UInt to cast
the equivalent Enum to the value of the cast UInt and a Bool indicating if the Enum is valid