Remove unnecessary cast