public static T NewUserData <T>(LuaStatePtr l, int sz) { return((T)Marshal.PtrToStructure(LuaDelegates.lua_newuserdata(l, sz), typeof(T))); }