title: Cannot implicitly convert type 'int?' to 'int'
body: <p>In this query I have 3 records <strong>(int-(telefon =  d.telefon), decimal-(pesel = d.pesel), decimal-(nip = d.nip))</strong> another records are strings.</p>
  
  <pre><code>public ActionResult detail(int LoginID)
  {
      var user = (from d in baza.uzytkowniks
                  where LoginID == d.LoginID
                  select new uzytkownikModel {
                      imie = d.imie, 
                      nazwisko = d.nazwisko, 
                      telefon = d.telefon, 
                      pesel = d.pesel, 
                      nip = d.nip, 
                      email = d.email, 
                      adres_zamieszkania = d.adres_zamieszkania}).ToList();
  
      ViewBag.daneuser = user;
      return View();
  }
  </code></pre>
  
  <p>And I have error:</p>
  
  <blockquote>
    <p>Cannot implicitly convert type 'int?' to 'int'. An explicit conversion
    exists (are you missing a cast?)</p>
  </blockquote>
  
  <p>and two another errors with 'decimal?' instead 'int?'.</p>
  
  <p>Model:</p>
  
  <pre><code> public class uzytkownikModel
      {
      [Required]
      public string imie { get; set; }
  
      [Required]
      public string nazwisko { get; set; }
  
  
      public decimal pesel { get; set; }
      public decimal nip { get; set; }
  
      public string adres_zamieszkania { get; set; }
      public int telefon { get; set; }
      public string email { get; set; }
  
  }
  </code></pre>
  
  <p>Only imie and nazwisko are nonnullable, rest have allow null</p>
  
  <p><strong>///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////</strong></p>
  
  <p><strong>Now work. I change in model:</strong></p>
  
  <pre><code>   decimal to decimal?
  </code></pre>
  
  <p>and</p>
  
  <pre><code>int to int?
  </code></pre>
  
  <p>Thank you everyone for help</p>