class IntegerToDoubleConverter implements Converter<Integer, Double> {

    @Override
    public Integer toModelValue(Double widgetValue) {
        return widgetValue != null ? widgetValue.intValue() : null;
    }

}