return config.getNumber(fieldName).floatValue();
} else if ((type == Double.class) || (type == double.class)) {
return config.getDouble(fieldName);
}
Time time = fieldInfo.getField().getAnnotation(Time.class);
Long asLong;
if (time != null) {
asLong = config.getDuration(fieldName, time.value());
} else if (fieldInfo.getField().getAnnotation(Bytes.class) != null) {
asLong = config.getBytes(fieldName);
} else {
asLong = config.getLong(fieldName);
}