The actual tryGet function.
the SumType whose value is being accessed.
the SumType's value.
MatchException if the value does not have the expected type.
See Implementation
The actual tryGet function.