SONARJAVA-774 Cast operand before assignement