Throw a TypeError when unwrapping an interface fails.