Duck typing simplified