enums: add `TryParseToEnum`

acts like all the other framework `TryParse` methods