Fast-path for casting JS wrappers to JSElement.