casting bson to string before comparison to stop recursion