[...] It also doesn't depend on anything besides the standard library. [...]
if you want to drop the dependency on std.typecons : Nullable you could use https://code.dlang.org/packages/expected, where you can additionally return error values with instead of returning null on error.
Doesn't cast to bool but can check for .hasError which is more explicit.
