Attempts to cast the candidate to an enumeration value.
The enumeration type.
The candidate to cast to the enum type.
The fallback to use in the case that candidate cannot represent the enumeration type.
The candidate if candidate represents the enumeration type, or fallback in the case that it does not.
The candidate if candidate represents the enumeration type, or undefined in the case that it does not.
Attempts to cast the candidate to an enumeration value.
Param: enumeration
The enumeration type.
Param: candidate
The candidate to cast to the enum type.
Param: fallback
The fallback to use in the case that candidate cannot represent the enumeration type.
Returns
The candidate if candidate represents the enumeration type, or fallback in the case that it does not.