code: private List<Long> asLongList(Object value) {
          long[] values = (long[]) value;
          List<Long> list = new ArrayList<Long>(values.length);
          for (long longValue : values) {
              list.add(longValue);
          }
          return list;
      }
docs: Returns value as a Long List.
  
  @param value array to convert.
  
  @return value as a Long List.