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 have a rule similar to this:-
<br><br>rule &quot;aggregate rule&quot;
<br>    when 
<br>        $b : Bill(billAmount &gt; 100)
<br>        $n : Number(doubleValue &gt; 100) from accumulate ( $l : 
LineItem() from $b.findItems(&quot;color&quot;, &quot;blue&quot;), 
sum($l.getSellingValue()))
<br>    then
<br>        VoucherSeries fact0 = new VoucherSeries();
<br>        fact0.setSeriesCode( &quot;aggregate voucher&quot; );
<br>        insert(fact0 );
<br>        voucherlist.add(fact0);
<br>        System.out.println(&quot;sum&quot; + $n);
<br>end
<br><br><br>This rule works fine when it is run with java based drools 
API&#39;s, but while running it with IKVM converted drools, it throws the 
following error:-
<br><br>Unable to cast object of type &#39;AccumulateMemory&#39; to type 
&#39;FromMemory&#39;.
<br><br>Any ideas on what might be going wrong ?<br><br>thanks,<br>piyush<br>