code: public static boolean[] toBooleanArray(Collection<Boolean> c){
          boolean arr[] = new boolean[c.size()];
          int i=0;
          for(Boolean item: c)
              arr[i++] = item;
          return arr;
      }
docs: /*-------------------------------------------------[ To Primitive Array ]---------------------------------------------------