Match interfaces of different classes