I am assuming you are passing the value as a param to a method.
So if the enum looks like this
public enum enumXYZ
{
X= 1, Y = 2, Z = 3
}
You will have a method like this
public void mymethod(enumXYZ xyztype)
{}
Pass it the value like this
//begin
enumXYZ myz = enumXYZ.Z;
mymethod(myz);
//end