Removing unnecessary cast.