public int asInt()
	{
		try {
			if (isNull()) {
				return 0;
			} else if (isInt()) {
				return ((Integer) value).intValue();
			} else if (isString()) {
                String s = (String) value;
                s=s.replaceAll(",","");
                return Integer.valueOf(s).intValue();
			} else if (isLong()) {
				return ((Long) value).intValue();
			} else if (isDouble()) {
				return ((Double) value).intValue();
			} else if (isFloat()) {
				return ((Float) value).intValue();
			} else if (isBigDecimal()) {
				return ((BigDecimal) value).intValue();
			} else {
				return Integer.valueOf(asString()).intValue();
			}
		} catch (Exception e) {
			throw new SwingObjectRunException( e, ErrorSeverity.SEVERE, FrameFactory.class);
		}
	}