BTW, Lua 5.3 has two macros that allow you to disable those automatic coercions, if you want to try. -DLUA_NOCVTN2S to disable conversion from numbers to strings -DLUA_NOCVTS2N to disable conversion from strings to numbers -- Roberto