let printAge object = print object.age
And it'll just check if anything passed to printAge has a field "age".