added UbjectUtils.toArray method for easier converting collections to
array