title: List of different types based on the same interface C# problem
body: <p>I would like to create a interface that I can use with different types. Like a table where columns may be of different types eg Integer, String, Date. </p>
  
  <p>The following articles have been of great help. </p>
  
  <p><a href="https://stackoverflow.com/questions/2099779/listbox-list-of-different-objects-implementing-the-same-interface">ListBox, list of different objects implementing the same interface</a></p>
  
  <p><a href="https://stackoverflow.com/questions/317279/list-of-two-different-types-in-c">List of two different Types in C#</a></p>
  
  <p>The problem I have is that the i still need a common interface that can handle different types of data. How can I get around this?</p>
  
  <p>Could I just have the main Interface store as a string and have all types converted to and from?</p>
  
  <pre><code>interface IMytype
  {
      string Item { get; set; }
  }
  
  class Myint : IMember
  {
      public int Item { 
                   get; // code here  IMytype.Item (get) then convert to int
                   set; //  code here to convert to string then IMytype.Item (set) 
                  }
  }
  </code></pre>
  
  <p>Example </p>
  
  <pre><code>IMytype testint = new MyInt();
  
  testint.Item = 10;
  
  List&lt;IMytype&gt; testlist = new List&lt;IMytype&gt;();
  
  testlist.add(testint);
  </code></pre>
  
  <p>Am I on the right track?</p>