title: Why can't I get an error information when I convert a Long value to Int value in kotlin?
body: <p>I use Code A to open a activity and pass a long value to parameter id.</p>
  
  <p>I use Code B to get the value of parameter id, but I make a mistaken carelessness to using the code  <code>var myid =intent.extras.getInt("id")</code>, and It should be  <code>var myid =intent.extras.getLong("id")</code></p>
  
  <p>The system return an error value 0 for the parameter myid when I use <code>var myid =intent.extras.getInt("id")</code>, it cause me to debug the program again and again.</p>
  
  <p>I think that the system should display an error information when I use <code>var myid =intent.extras.getInt("id")</code>, but the system give me an error value 0</p>
  
  <p><strong>Code A</strong></p>
  
  <pre><code>startActivity&lt;UIAddEditBackup&gt;("id" to 2L)
  </code></pre>
  
  <p><strong>Code B</strong></p>
  
  <pre><code>class UIAddEditBackup: AppCompatActivity() { 
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.layout_add_edit_backup)      
  
          var myid =intent.extras.getInt("id")
          toast("This is my ID "+myid)
      }
  }
  </code></pre>