Added `to_str` to convert object to string implicitely.