Function asEnum

Parse an attribute as a multi-state value (for examnple: true, false, mixed), defaulting to the first valid option

0.9.0