Lua String To Byte Array, Seems … To Lua the data type is userdata (tested using type(data)).