Java tutorial
//package com.java2s; //License from project: Apache License import com.google.common.base.Function; import com.google.common.collect.Lists; import java.util.List; public class Main { public static List<String> asStringList(List<Object> list) { List<String> newList = Lists.transform(list, new Function<Object, String>() { @Override public String apply(Object input) { return input.toString(); } }); return newList; } }