OmeroCpp: integration/search: Correct casts in checks