Remove cast as it is not needed.