Retrieves the step identifier as the specified enum type.
The enum value if the step is of the correct type, null otherwise
The expected enum type