Remove unnecessary cast

This is not needed.