code: static Number coerceToPrimitiveNumber(String pValue,
                                            Class pClass)
              throws ELException {
          if (pClass == Byte.class || pClass == Byte.TYPE) {
              return Byte.valueOf(pValue);
          } else if (pClass == Short.class || pClass == Short.TYPE) {
              return Short.valueOf(pValue);
          } else if (pClass == Integer.class || pClass == Integer.TYPE) {
              return Integer.valueOf(pValue);
          } else if (pClass == Long.class || pClass == Long.TYPE) {
              return Long.valueOf(pValue);
          } else if (pClass == Float.class || pClass == Float.TYPE) {
              return Float.valueOf(pValue);
          } else if (pClass == Double.class || pClass == Double.TYPE) {
              return Double.valueOf(pValue);
          } else {
              return PrimitiveObjects.getInteger(0);
          }
      }
docs: Coerces a String to the given primitive number class