title: foreach item in class list
body: <p>I have a class like so:</p>
  
  <pre><code>public class OverDueClass
  {
       public int CustomerID { get; set; }
       public int Question_ID { get; set; }
       public string Department { get; set; }
       public DateTime DueDate { get; set; }
  }
  </code></pre>
  
  <p>And I am populating this class and passing it to another method:</p>
  
  <pre><code>while (dataReader.Read())
  {
        OverDueClass overDueItem = new OverDueClass();
  
        overDueItem.CustomerID = (int)dataReader[0];
        overDueItem.Question_ID = (int)dataReader[1];
        overDueItem.Department = dataReader[2].ToString();
        overDueItem.DueDate = (DateTime)dataReader[3];
  
        OverDueCell.Add(overDueItem);
  }  
  
  sendEmail("fake@email.com", OverDueCell);
  </code></pre>
  
  <p>Now in the other method, I can see the data is being passed.</p>
  
  <p>Now I am trying to run a <code>foreach</code> to do something with the data and I tried the following:</p>
  
  <pre><code>foreach(string item in overDue)
  {
  
  }
  </code></pre>
  
  <p>But I get this error: </p>
  
  <blockquote>
    <p>Cannot covert type to string.</p>
  </blockquote>