static String[] toStringArray(Object[] array) {
        if (array.length == 0) {
            return null;
        }
        if (array[0] instanceof String) {
            return (String[]) array;
        }
        String[] stringArray = new String[array.length];
        for (int i=0;i<array.length;i++) {
            stringArray[i] = array.toString();
        }
        return stringArray;
    }