Fixed castCommitted so it doesn't cast twice.