Test casting, object, jwindow.