Converts the value at the given index to a Lua thread (coroutine). Returns null if the value is not a thread.
LuaState? toThread(int idx);