public static long getLong(AnnotationValue value) {
    return valueOfType(value, Long.class);
  }
Returns the value as a long.

@throws IllegalArgumentException if the value is not a long.
common/src/main/java/com/google/auto/common/AnnotationValues.java