fix ValueError when hashing numeric properties
if possible, cast values as numeric when filtering