eg:
List<Product> products = new ArrayList<Product>();
Product[] array = products.toArray(new Product[products.size()]);