Example usage for Java jdk.nashorn.internal.objects NativeJava fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | to(final Object self, final Object obj, final Object objType) Given a script object and a Java type, converts the script object into the desired Java type. |