title: Drools error with IKVM
body: <p>We are using Drools engine on our client written in C#. We are using IKVM to convert the drools jar and our java beans into dll's using IKVM. We are a rule similar to this:-</p>
  
  <pre><code>rule "aggregate rule"
      when 
          $b : Bill(billAmount &gt; 100)
          $n : Number(doubleValue &gt; 100) from accumulate ( $l : LineItem() from $b.findItems("color", "blue"), sum($l.getSellingValue()))
      then
          VoucherSeries fact0 = new VoucherSeries();
          fact0.setSeriesCode( "aggregate voucher" );
          insert(fact0 );
          voucherlist.add(fact0);
          System.out.println("sum" + $n);
  end
  </code></pre>
  
  <p>This rule works fine when it is run with java based drools API's, but while running it with IKVM converted drools, it throws the following error:-</p>
  
  <p>Unable to cast object of type 'AccumulateMemory' to type 'FromMemory'.</p>
  
  <p>Any ideas on what might be going wrong ?</p>