Removed unnecessary cast.