add min/max enforcement to data conversion