Here you can find the source of toBooleanArray(Object[] vs)
public static boolean[] toBooleanArray(Object[] vs)
//package com.java2s; //License from project: Apache License public class Main { public static boolean[] toBooleanArray(Object[] vs) { boolean[] nvs = new boolean[vs.length]; for (int i = 0; i < vs.length; i++) { nvs[i] = (boolean) vs[i]; }/*from ww w. j a v a2 s .c o m*/ return nvs; } }