raise notice if type hint is not matched (in addition to exception)