Convert a string to an object. Note: this should be the inverse operation to the object's "ToString" method.