Avoid the use of InstanceOf inside XX-shared loops | CAST Appmarq