final NumberRange range = (NumberRange) checkValue;
min = range.getMinimumNumber();
max = range.getMaximumNumber();
}
else if(checkValue instanceof DateRange) {
final DateRange range = (DateRange) checkValue;
min = range.getStartDate();
max = range.getEndDate();
}
else {
// presume an object array
final Object[] oarr = (Object[]) checkValue;
min = oarr[0];