code: private static Object coerceNumber(Object value) {
              if ( value instanceof Number && !(value instanceof BigDecimal) ) {
                  return getBigDecimalOrNull( value );
              } else {
                  return value;
              }
          }
docs: copied from DMN FEEL utils