<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hello<br><br>in my working memory I insert an object like this<br><br>public class Foo{<br><blockquote>private IntType prop;<br><br>...<br></blockquote>}<br><br>where IntType is a class, but in practice <i>prop</i> is either of type TypeA or TypeB, both extending the IntType class.<br><br><br>then i have a rule like this:<br><br>rule "abc"<br> <br> when<br> <br> Foo(p : prop, p.name == "propertyA")<br> <br> then <br> // call some method defined only in the TypeA class<br> <br>end<br><br><br>how do i explicitly cast p into a TypeA object to call the method defined only in that class?<br><br>thanks in advance,<br>Alessandro Terrinoni<br /><hr />Scegli fra pił di 30 stazioni! <a href='http://clk.atdmt.com/GBL/go/140630364/direct/01/' target='_new'>Ascolta la radio su Messenger</a></body>
</html>