EnumToNumber
Declaration
EnumToNumber(enum Enum)
Description
Casts the provided Enum to a number and returns it.
--Casts the Team.Red value to a number, which equals 1, then prints it
local team = EnumToNumber(Team.Red);
Print(EnumToNumber(team));