In my GWT project, I really need to implement the same interface between several overlays (JavaScriptObject).
According to the documentation :
Starting with GWT 2.0, it is permissible for JavaScriptObject subtypes to implement interfaces. Every method defined in an interface may map to at most one method declared in a JavaScriptObject subtype. Practically speaking, this means that only one JavaScriptObject type may implement any given interface, but any number of non-JavaScriptObject types may also implement that interface.
So, I would like to "cast" my JavaScriptObject to a real Java object. It allows me to reduce considerably a lot of duplication code.
Is it possible ? Thanks.