Bug-Report: Cast inside loop not affects all objects

EDIT:

Same problem on 5.5.0 newest version