fix mondoid type casting in where clause