import ( conversion "github.com.googlecloudplatform.kubernetes.pkg.conversion" v1 "k8s.io/api/core/v1" v1beta1 "k8s.io/api/extensions/v1beta1" ) pod := &v1.Pod{} dstPod := &v1beta1.Pod{} if err := conversion.DefaultConvert(pod, dstPod, nil); err != nil { // Handle the conversion error }In this example, `DefaultConvert` takes a source `v1.Pod` object, a destination `v1beta1.Pod` object and performs the conversion. Note that `nil` value is passed for the third argument, which controls the behavior of the conversion. By default, it performs a "strict" conversion, meaning it refuses to set any fields that are not present in the destination version.