between: support min/max cast