Alternatively, use an extension method instead of a one-liner:
public static T ToEnum(this string enumString)
{
return (T) Enum.Parse(typeof (T), enumString);
}
Usage:
Color colorEnum = "Red".ToEnum();
OR
string color = "Red";
var colorEnum = color.ToEnum();