sv_cast_string: Minor fix and extension.