code: static String[] toArray(JsArrayString values) {
          if (GWT.isScript()) {
              return reinterpretCast(values);
          } else {
              int length = values.length();
              String[] ret = new String[length];
              for (int i = 0, l = length; i < l; i++) {
                  ret[i] = values.get(i);
              }
              return ret;
          }
      }
docs: From JSArrays implementation https://code.google.com/p/gwt-in-the-air/source/browse/trunk/src/net/ltgt/gwt/jscollections/client/JsArrays.java
  
  @param values
  @return