There are a two ways to specify a casting formula: either as a
string, or a list of quoted variables. This function converts the
former to the latter.
Casting formulas separate dimensions with ~ and variables
within a dimension with + or *. . can be used as
a placeholder, and ... represents all other variables not
otherwise used.