convert List<Object> to System.Array[]
<p>I have an <code>Array</code></p>

<pre><code>Array[] Values;
</code></pre>

<p>I sorted that <code>Array</code> using this code</p>

<pre><code>List&lt;Object&gt; val= new List&lt;Object&gt;();

foreach (var arr in Values)
{
    if (arr.GetValue(1, 9).Equals("Impact"))
        val.Add(arr);
}
foreach (var arr in Values)
{
    if (arr.GetValue(1, 9).Equals("Critical"))
        val.Add(arr);
}
foreach (var arr in Values)
{
    if (arr.GetValue(1, 9).Equals("High"))
        val.Add(arr);
}
foreach (var arr in Values)
{
    if (arr.GetValue(1, 9).Equals("Medium"))
        val.Add(arr);
}
foreach (var arr in Values)
{
    if (arr.GetValue(1, 9).Equals("Low"))
        val.Add(arr);
}
</code></pre>

<p>now I have to convert the <code>List</code> val back to <code>System.Array[]</code>.</p>

<p>I have tried doing this using <code>Values = val.ToArray();</code> but it is giving compilation error that <code>object[]</code> cannot be converted to <code>System.Array[]</code> implicitly.</p>

<p>Is there any way to convert <code>List&lt;object&gt;</code> to <code>System.Array[]</code> explicitly ?</p>

<p>Or is there any other way to sort <code>Values</code>?</p>