Bug 9761 said that converting from JS to Java with target type java.lang.Object should produce a String object. This is actually more general, other types also need to be converted to appropriate objects. <rdar://problem/4856597>
*** This bug has been marked as a duplicate of bug 35202 ***