title: No implicit conversion between int and null
body: <p>I have a class and it has nullable properties like below;</p>
  
  <pre><code>public class Sample
  {
     public int? ID { get; set; }
     public string SampleName { get; set; }
     public bool? Active { get; set; }
     public DateTime? Date { get; set; }
  }
  </code></pre>
  
  <p>When i try to do something like below;</p>
  
  <pre><code>foreach (DataRow tableItem in table.Rows)
  {
          Sample sample = new Sample()
          {
              ID = tableItem["ID"] != DBNull.Value ? Convert.ToInt32(tableItem["ID"].ToString()) : null,
              SampleName = tableItem["SampleName"] != DBNull.Value ? tableItem["SampleName"].ToString() : null,
              Active = tableItem["Active"] != DBNull.Value ? Convert.ToBoolean(tableItem["Active"].ToString()) : null,
              Date = tableItem["Date"] != DBNull.Value ? Convert.ToDateTime(tableItem["Date"].ToString()) : null,
          };
  
      data.Add(sample);
  }
  </code></pre>
  
  <p>It gives error like "Type of conditional expression cannot be determined because there is no implicit conversion between 'int' and ''".</p>