Allow enums to be assigned using class