SONARJAVA-570 Redundant type cast