title: Can I cast Int64 directly into Int?
body: <p>I've been using SQLite.swift lately to build my app database.
  And I'm defining all my <code>INTEGER</code> columns with a <code>Int64</code> type, like the documentation explains.</p>
  
  <p>But every once in a while I need that <code>Int64</code> to be just <code>Int</code>.
  So my question is, if I do this:</p>
  
  <pre><code>//Create a table with Int instead of Int64
  let test_id = Expression&lt;Int&gt;("test_id")
  let tests = db["tests"]
  
  db.create(table: tests, ifNotExists: true){ t in
      t.column(test_id)
  }
  
  
  class func insertTest(t: Int) -&gt; Int{
      //insert.rowid returns an Int64 type
      let insert = tests.insert(test_id &lt;- t)
      if let rowid = insert.rowid{
          //directly cast Int64 into Int
          return Int(rowid)
      }
      return 0
  }
  </code></pre>
  
  <p>Will it be correct?</p>
  
  <p>Of course I tested it. And it does works, but I was reading <a href="https://stackoverflow.com/questions/29055820/using-variables-in-filters-in-sqlite-swift/29064444#29064444">this question in Stackoverflow</a> </p>
  
  <p>And it seems that I could have a problem with 32 bits devices...</p>
  
  <p>If this is wrong, how can I cast <code>Int64</code> into <code>Int</code>?</p>