How to pass enum in function?

Enums just translate to Bytes, so it should be easy to cast any value to one, eg:

uint8 myKludgeEnum=0;
CallFunctionThatNeedsFlags(blah,blah,(EK2NewNodeFlags)myKludgeEnum);
1 Like