Function Option.opCast

Casts this Option to bool.

bool opCast(U)();

An Option is true if it contains a value, ($D_KEYWORD false) if it contains nothing.

Returns

true if this Option contains a value, ($D_KEYWORD false) if it contains nothing.