Does anyone know how to type cast a java object inside javascript
using rhino?
var x = (A) B; does not work
Where B and A are valid java classes and B can be type cast to A in
java. B has been imported.
Thanks,
PC
There are no casts in JavaScript because it's dynamically typed so
there's no need to declare the runtime type to the static type system.
--N