You cant directly initialize string to Enum check this sample
using System;
public class Test
{
public static void Main()
{
Console.WriteLine(Convert.ToString(name.test));
Console.WriteLine(Convert.ToInt32(name.test));
// your code goes here
}
public enum name
{
test=1
}
}