check dest type