Use JSNI to "adapt" between GWT Java and basic Javascript: more specifically, use a method cast()to adapt to the type you want. You can subsequently "repackage" the object to any Java primitive that you want / can.
, native JavascriptObject, "" , . . .