Fixed cast conversion in JSON new string