In java, an object array can not be directly cast into a string array. This problem usually occurs when getting an array from a collection.
According to this postIt’s possible to do it like this:String[] str = someCollection.toArray(new String[someCollection.size()]);
2017.8.2