Fix bug for string cast
Fix bug for cast to string