The module std.typecons provides the struct Nullable, which takes a single template argument. This allows for the creation of nullable primitives.
Nullable!int maybeIntValue;