Optimize DIRECT_COPY macro for instance where input and output type are
not the same