Use strbreak to separate the cvar name from its value. Then, most likely, you can simply use set_cvar_string whether the value is int, float, or string, since the cvar will still be retrieved by the game under the correct type.
__________________
No longer around. Thanks your support, everyone! As always: