class BooleanConverter implements AtlasConverter<Boolean> {

    @AtlasConversionInfo(sourceType = FieldType.BOOLEAN, targetType = FieldType.FLOAT)
    public Float toFloat(Boolean value) {
        return value != null ? (value ? 1.0f : 0.0f) : null;
    }

}