cast to dest type, fix warning imgconvert.c:1958: warning: assignment from incompatib...