title: Convert datatable column to list
body: <p>I build method which would convert specific datatable column values into a list of specific type, most like it will be List of string. Nevertheless, the problem I face when datatable column was the type of <code>decimal</code> or any other and I wanted to get result as <code>List&lt;string&gt;</code> I get error for instance: decimal to string exception. What should i change inside my method to fix that?</p>
  
  <pre><code>//for example here colname is decimal i want still my list to be List&lt;string&gt; containing that decimals as strings
      var myList = GetSpecificColumnValuesFromDatatableToList&lt;string&gt;(mydt, "colname");
  
      public List&lt;T&gt; GetSpecificColumnValuesFromDatatableToList&lt;T&gt;(DataTable datatable, string colName)
      {
           List&lt;T&gt; list = datatable.AsEnumerable().Select(r =&gt; r.Field&lt;T&gt;(colName)).ToList();          
           return list;
      }
  </code></pre>