Variant: string to basic types convertion