diff --git a/rapidoid-u/src/main/java/org/rapidoid/util/U.java b/rapidoid-u/src/main/java/org/rapidoid/util/U.java
index <HASH>..<HASH> 100644
--- a/rapidoid-u/src/main/java/org/rapidoid/util/U.java
+++ b/rapidoid-u/src/main/java/org/rapidoid/util/U.java
@@ -43,8 +43,7 @@ import java.util.regex.Pattern;
  */
 public class U {
 
-	private U() {
-	}
+	private U() {}
 
 	public static String readable(Object obj) {
 		if (obj == null) {
@@ -223,6 +222,10 @@ public class U {
 		return items;
 	}
 
+	public static Object[] array(Iterable<?> items) {
+		return (items instanceof Collection) ? ((Collection<?>) items).toArray() : list(items).toArray();
+	}
+
 	public static <T> Set<T> set(Iterable<? extends T> values) {
 		Set<T> set = new LinkedHashSet<T>();
Added new util that converts Iterable to array.