Here you can find the source of castToStringList(Object value)
@SuppressWarnings("unchecked") public static List<String> castToStringList(Object value)
//package com.java2s; //License from project: LGPL import java.util.ArrayList; import java.util.List; public class Main { @SuppressWarnings("unchecked") public static List<String> castToStringList(Object value) { List<String> result; try {/*from ww w . ja v a 2 s .co m*/ result = (List<String>) value; } catch (Exception e) { result = null; } if (result == null) { return new ArrayList<String>(); } return result; } }