As read here, you cannot reference a model object inside of a Predicate. So if you wanted to filter for a User model, you could by using its id outside of the Predicate like such:
let userId = uder.id
#Predicate<Transaction>{ tran in
tran.tranInitiator.id == userId
}