No. The whole point of NotNull is that it should enforce not being null. Allowing implicit casting from PossiblyNull to NotNull would break this.

Then i'm further for a keyword that checks an object for not null.
Or you check at runtime to avoid null, e.g. with assert or enforce.

Reply via email to