There is a way to tell the type - by using getmetatable. It strikes me as odd, though.
Also, it only works for certain types. Normal types won't return a string as metatable.