code: @SuppressWarnings("unchecked")
      private <T> T[] getArrayValue(Class<T> type, String propertyName, EDBObject object) {
          List<T> elements = getListValue(type, propertyName, object);
          T[] ar = (T[]) Array.newInstance(type, elements.size());
          return elements.toArray(ar);
      }
docs: Gets an array object out of an EDBObject.