@ SuppressWarnings ( "unchecked" ) public static String [ ] toStringArray ( Object entry ) { if ( entry instanceof String [ ] ) { return ( String [ ] ) entry ; } else if ( entry instanceof OTrackedList ) { OTrackedList < String > list = ( OTrackedList < String > ) entry ; return list . toArray ( new String [ list . size ( ) ] ) ; } return new String [ 0 ] ; }
Converts a DB list into a String array