Lets say you have code block like this

public void BindGridData<T>(IEnumerable<T> result)
{
Session["result"] = result;
gridView.DataSource = result;
gridView.DataBind();
}

How do you call this function in another event passing the Session["result"] as the argument?
In essence, how do you cast Session["result"] back to the generic object?

thanks