Assert variable type in var_Set/GetXYZ.