If you really want the
numeric value associated with the Enum 'cmd
converted to a 'string:
string s = Convert.ToInt32(cmd.login).ToString();
I, also, wonder why you would actually
need to do this in your code; you can use Enum values in many useful ways without converting them to any other Type; for example in a Switch/Case block:
cmd cmd1 = cmd.login;
switch (cmd1)
{
case cmd.login:
break;
case cmd.logout:
break;
}