Removed int casting for min/max to allow for dates
Merge pull request #289 from jraede/fix_maxmin

Removed int casting for min/max to allow for dates