public static float getFloat(AnnotationValue value) {
    return valueOfType(value, Float.class);
  }
Returns the value as a float.

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