title: How to retrieve a list stored in an Object class
body: <pre class="lang-cs prettyprint-override"><code>public class A
  {
      public long TestCaseId { get; set; }
      public byte TestCaseNumber { get; set; }
  
      public object FetchList { get; set; }
  } 
  </code></pre>
  
  <pre class="lang-cs prettyprint-override"><code>class Program
  {
      static void Main(string[] args)
      {
          List&lt;int&gt; a = new List&lt;int&gt;(){ 1, 2, 3, 4 };
          List&lt;A&gt; Objectlst = new List&lt;A&gt;();
          Objectlst .Add(new A { TestCaseId = 1, TestCaseNumber = 1, FetchList = a });
          foreach (var item in Objectlst)
          {
              Console.WriteLine(item.FetchList);
          }
      }
  }
  </code></pre>
  
  <p>There is a list of class <code>A</code>. If I am assigning a generic list to Object datatype <code>FetchList</code>, 
  Can someone tell me how to retrieve all the values stored in list through this property <code>FetchList</code>?</p>