Add more conversion functions for Lua