Use duck typing instead of inheritance checking. Allows Method objects to be used.