Any reason for removing this type cast? Because the new assertion plays that role already? Even if it does it makes sense to keep the type cast in my opinion, as assertions are run-time checks.