func (valWrap ValueWrapper) AsTime() (*TimeWrapper, error) {
	if valWrap.value.IsSetTVal() {
		rawTime := valWrap.value.GetTVal()
		time, err := genTimeWrapper(rawTime, valWrap.timezoneInfo)
		if err != nil {
			return nil, err
		}
		return time, nil
	}
	return nil, fmt.Errorf("failed to convert value %s to Time", valWrap.GetType())
}
AsTime converts the ValueWrapper to a TimeWrapper
package nebula_go
import (
	"fmt"
	"sort"
	"strconv"
	"strings"
	"github.com/vesoft-inc/nebula-go/v2/nebula"
)
type ValueWrapper struct {
	value        *nebula.Value
	timezoneInfo timezoneInfo
}
func (valWrap ValueWrapper) IsEmpty() bool {
	return valWrap.GetType() == "empty"
}
func (valWrap ValueWrapper) IsNull() bool {
	return valWrap.value.IsSetNVal()
}
func (valWrap ValueWrapper) IsBool() bool {
	return valWrap.value.IsSetBVal()
}
func (valWrap ValueWrapper) IsInt() bool {
	return valWrap.value.IsSetIVal()
}
func (valWrap ValueWrapper) IsFloat() bool {
	return valWrap.value.IsSetFVal()
}
func (valWrap ValueWrapper) IsString() bool {
	return valWrap.value.IsSetSVal()
}
func (valWrap ValueWrapper) IsTime() bool {
	return valWrap.value.IsSetTVal()
}
func (valWrap ValueWrapper) IsDate() bool {
	return valWrap.value.IsSetDVal()
}
func (valWrap ValueWrapper) IsDateTime() bool {
	return valWrap.value.IsSetDtVal()
}
func (valWrap ValueWrapper) IsList() bool {
	return valWrap.value.IsSetLVal()
}
func (valWrap ValueWrapper) IsSet() bool {
	return valWrap.value.IsSetUVal()
}
func (valWrap ValueWrapper) IsMap() bool {
	return valWrap.value.IsSetMVal()
}
func (valWrap ValueWrapper) IsVertex() bool {
	return valWrap.value.IsSetVVal()
}
func (valWrap ValueWrapper) IsEdge() bool {
	return valWrap.value.IsSetEVal()
}
func (valWrap ValueWrapper) IsPath() bool {
	return valWrap.value.IsSetPVal()
}
func (valWrap ValueWrapper) IsGeography() bool {
	return valWrap.value.IsSetGgVal()
}
func (valWrap ValueWrapper) AsNull() (nebula.NullType, error) {
	if valWrap.value.IsSetNVal() {
		return valWrap.value.GetNVal(), nil
	}
	return -1, fmt.Errorf("failed to convert value %s to Null", valWrap.GetType())
}
func (valWrap ValueWrapper) AsBool() (bool, error) {
	if valWrap.value.IsSetBVal() {
		return valWrap.value.GetBVal(), nil
	}
	return false, fmt.Errorf("failed to convert value %s to bool", valWrap.GetType())
}
func (valWrap ValueWrapper) AsInt() (int64, error) {
	if valWrap.value.IsSetIVal() {
		return valWrap.value.GetIVal(), nil
	}
	return -1, fmt.Errorf("failed to convert value %s to int", valWrap.GetType())
}
func (valWrap ValueWrapper) AsFloat() (float64, error) {
	if valWrap.value.IsSetFVal() {
		return valWrap.value.GetFVal(), nil
	}
	return -1, fmt.Errorf("failed to convert value %s to float", valWrap.GetType())
}
func (valWrap ValueWrapper) AsString() (string, error) {
	if valWrap.value.IsSetSVal() {
		return string(valWrap.value.GetSVal()), nil
	}
	return "", fmt.Errorf("failed to convert value %s to string", valWrap.GetType())
}