Avoid comparing types of different widths in a loop | CAST Appmarq