title: Truncate Time Converting list to nullable
body: <pre><code> public List&lt;DateTime&gt; CalorieDates(int patientId)
      {
          using (var db = new DbConn())
          {
              List&lt;DateTime&gt; query =
                  db.Calories.Where(d =&gt; d.PatientId == patientId &amp;&amp; d.FoodId != "initial" &amp;&amp; d.DateOfEntry != null)
                      .Select(d =&gt; System.Data.Entity.DbFunctions.TruncateTime(d.DateOfEntry)).Distinct().ToList();
  
              return query;
          }
  
      }
  </code></pre>
  
  <p>Why is this converting my list to nullable datetimes?</p>
  
  <pre><code>Error   CS0029  Cannot implicitly convert type 
  'System.Collections.Generic.List&lt;System.DateTime?&gt;'
  to 'System.Collections.Generic.List&lt;System.DateTime&gt;'   
  </code></pre>
  
  <p>How do I prevent this? I do not want a list of nullable datetimes.</p>