goja-core/src/main/java/goja/core/kits/lang/DataKit.java
public static int getInt(Long l) {
        return (l == null || l > Integer.MAX_VALUE) ? 0 : l.intValue();
    }
public static int getInt(Long l) {
        return (l == null || l > Integer.MAX_VALUE) ? 0 : l.intValue();
    }
Converts packing Long Int

@param l the object representation
@return the primitive representation