Added ToBooleanArray functionality