Let's say I have a Method written in JavaScript in GWT(JSNI) which accepts the wrapper data type Integer and I need to convert it into a Primitive Data type inside JS.
public static native void nativeMethod(Integer index)/*-{
// What is the best way to check for null values?
// How can I convert it into a primitive type?
}-*/;
Any suggestions?