between: support min/max cast
between: fix too much cast