Remove useless static cast