LuaObject.to

Attempt to convert the referenced object to the specified D type.

struct LuaObject
T
to
(
T
)
()

Examples

auto results = lua.doString(`return "hello!"`);
assert(results[0].to!string() == "hello!");

Meta