Subj : Rhino compilation and types To : netscape.public.mozilla.jseng From : Mikhaylov Andrey Date : Wed Oct 05 2005 08:55 am Meet a strange(?) problem with types while using Rhino. I have the code var myvar = om.getObject("ObjectName"); //lets assume myvar.qty is 10 myvar.qty=myvar.qty + 10; out.write(typeof(myvar.qty)); out.write(myvar.qty); output will be object 1010 Where om is my custom Java object. Is there any possibility to extend Rhino engine to interprete such values as numbers? P.S. My assumption that the place where it can be done is somewhere in Context.class or around .