public static Object BGL_SAFE_BX_TO_FX( Object n ) { bignum o = (bignum)n; if( o.value.bitCount() < 32 ) { return BINT( o.value.IntValue() ); } else { return n; } }