Object obj = getList(); List<String> result = new ArrayList<>(); if (obj instanceof ArrayList<?>) { for (Object o : (List<?>) obj) { result.add(String.class.cast(o)); } }