string[] array = list.ToArray();
var intArray = new[] { 1, 2, 3, 4, 5 };
var list = new List<int>(intArray);
listItem[] myArray = myList.ToArray();
/// <summary>
/// Convert List of string to Array
/// </summary>
/// <param name="lst"></param>
/// <returns></returns>
public static Array ConvertListToArray(List<string> lst)
{
string[] arr = lst.ToArray();
return arr;
}
convert array to list