Translations:Extension:Scribunto/Lua reference manual/1269/en

The $tostring_function function will convert a value to a string. The $tonumber_function function will convert a value to a number if possible, and otherwise will return nil. There are no explicit functions to convert a value to other data types.