The Enum datatype has the methods :FromValue(number) and :FromName(string) for converting to an EnumItem from the value or name respectively. The creator hub incorrectly documents these functions as accepting no arguments when they each accept one argument.
Thanks for flagging this issue - I just put in a change to add these params to the docs and they should be out in our next publish (<24 hours probably).
Appreciate your help in flagging these inconsistencies. Have a great rest of your week!
naahchos