Converts a shared variable to a string.

shared variable is the shared variable you want to convert to a string data type.
string returns the string that this function converted from the shared variable.