return ((Double) object).doubleValue() != 0.0;
Double value = (Double) object; if (value.isNaN()) return false; return value.doubleValue() != 0.0;
  public static boolean _boolean(Node context, Object object)  {    if (object instanceof Boolean)      {        return ((Boolean) object).booleanValue();      }    if (object instanceof Double)      {        return ((Double) object).doubleValue() != 0.0;      }    if (object instanceof String)      {        return ((String) object).length() != 0;      }    if (object instanceof Collection)      {        return ((Collection) object).size() != 0;      }    return false; // TODO user defined types  }