title: The argument type 'int' can't be assigned to the parameter type 'Expression<int, IntType>'
body: <p>I'm using <a href="https://pub.dev/packages/moor_flutter" rel="nofollow noreferrer">moor_flutter</a> package to interact with sqlite database on flutter app. I'm trying to parse tomorrow as in number of the day in a month. For example the date today is <code>24</code>, therefore I'm parsing <code>25</code> as tomorrow inside the moor_flutter's <code>isSmallerOrEqual()</code> method. The purpose is to parse 25 as in <code>runtimetype **Expression&lt;int, IntType&gt;**</code> but I'm parsing it as <code>runtimetype **int**</code>, This is because I don't know how to convert <code>int</code> to <code>Expression&lt;int, IntType&gt;</code>. I've tried some different approaches but non of them are succeeding.</p>
  
  <p>Below is the function where I'm doing this.</p>
  
  <pre class="lang-dart prettyprint-override"><code>Future NearDueDate() {
      // final DateTime currentDate = new DateTime.now();
      var dayToday = currentDate.day;
      var tommorow = int.parse(dayToday.toString()) + 1;
      return (select(the_records)
            ..where((t_r) =&gt; t_r.due_date.day.isSmallerOrEqual(tommorow)))
          .get();
    }
  </code></pre>
  
  <p><strong>Note</strong> the problem here is how can I convert <code>int</code> to <code>Expression&lt;int, IntType&gt;</code> so that I don't get any error on <code>t_r.due_date.day.isSmallerOrEqual(tommorow)</code>?</p>
  
  <p>Thank you, posted with Love.</p>