Check against interface and not base class