Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { 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; } }