setAndReturn - set field in object and return object