Is there a work around to cast an object from a DataKeyArray to a String in ASP.Net?
<p>I'm trying to cast an object from a DataKeyArray to a String and I get the following error: </p>

<p><code>Cannot convert type 'System.Web.UI.WebControls.DataKey' to 'string'</code></p>

<p>Is there someone to work around this problem. Here is my code that is producing the error:</p>

<pre><code>int index = (int)GridView1.SelectedIndex;
HttpContext.Current.Session["Order"] = (String)GridView1.DataKeys[index];
Response.Redirect("Test.aspx");
</code></pre>
