Remove useless cast