in src/ujdecode.c [575:587]
int UJNumericInt(UJObject obj)
{
switch ( ((Item *) obj)->type)
{
case UJT_Long: return (int) GetLong(obj);
case UJT_LongLong: return (int) GetLongLong(obj);
case UJT_UnsignedLongLong: return (int) GetUnsignedLongLong(obj);
case UJT_Double: return (int) GetDouble(obj);
default: break;
}
return 0;
}