title: How to convert Long to Int in Kotlin?
body: <p>I want to do something like this:</p>
  
  <pre><code>fun process(minutes: Int) = 0
  
  fun test() {
      process(System.currentTimeMillis() / 1000 / 60) // error: Int expected
  }
  </code></pre>
  
  <p>and if I try <code>process((System.currentTimeMillis() / 1000 / 60) as Int)</code> I get a <code>ClassCastException</code> at runtime.</p>
  
  <p>So how can I convert Long to Int? </p>