[BZ-996018] remove unnecessary cast