Add LuaValue.as and LuaValue.asOpt