unsafeCast
Changes the type of the returned document, with no type-safety.
Every subsequent step in the pipeline will think the returned document is of type New. It is your responsibility to ensure that this corresponds to the reality; the KtMongo DSL makes no verifications.
If you want to edit the representation of the documents in the pipeline, prefer using HasProject.project.
See also
Add a new stage to this pipeline.