I think Yura wrote:
[Charset koi8-r unsupported, filtering to ASCII...]
> Hi jess-users
> 
> Is there any way to convert Java object to one of the predefined Jess types 
> (e.g. I need to convert Object which is actually Integer to RU.INTEGER).
> 

Hi Yuri,

The cleanest way is just to use the Java mechanism for "unwrapping"
the wrapper type: intValue(), longValue(), floatValue(), etc. just as
you'd do in pre-Tiger Java; e.g., 

(bind ?i (?I intValue))

If ?I is a java.lang.Integer, ?i will be an RU.INTEGER.


---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to