I have an enum:
enum myenum{ typeA, typeB, typeC } myenum_t;
Then, a functions is to be called with an enum parameter:
Yes.
Let the compiler do its work, don't cast int to an enum type and you should be good.
int
enum