private boolean nonZero(Object obj){
		if(obj==null)
			return false;
		if(obj instanceof Boolean){
			return ((Boolean)obj).booleanValue();
		}
		if(obj instanceof Float || obj instanceof Double){
			return ((Number)obj).doubleValue()!=0.0;
		}
		if(obj instanceof Number){
			return ((Number)obj).longValue()!=0;
		}
		if(obj instanceof Character){
			return ((Character)obj).charValue()!=0;
		}
		return true;
	}