implement to_enum on base stage