remove redundant cast #MPS-17735 fixed