Remove unnecessary cast to action