var.opCall

T opCall(T)() const @safe

Convenience call operator that forwards to as!T().

Example:

var v = "hello";
string s = v!string(); // explicit instantiation
string t = v();        // inferred from assignment context