use consistent types for IDs (they are all Long in model objects)