Remove an unnecessary cast.