docs: public static boolean[] asBooleanArray(Collection collection) {
          boolean[] result = new boolean[collection.size()];
          int i = 0;
          for (Object c : collection) {
              result[i++] = asBoolean(c);
          }
          return result;
      }