enum in CAL

Hello ,

May i know how to return a value of type ENUM in CAL.

Thank you in advance.

  procedure GetCachedRState(): Enum RCheckState  
        registrationImpl: codeunit "RImpl";
    begin
        exit(registrationImpl.GetCachedRState());
    end;