code: func (s *Scheme) ConvertToVersion(in Object, outVersion string) (Object, error) {
  	unknown, err := s.raw.ConvertToVersion(in, outVersion)
  	if err != nil {
  		return nil, err
  	}
  	obj, ok := unknown.(Object)
  	if !ok {
  		return nil, fmt.Errorf("the provided object cannot be converted to a runtime.Object: %#v", unknown)
  	}
  	return obj, nil
  }
docs: // ConvertToVersion attempts to convert an input object to its matching Kind in another
  // version within this scheme. Will return an error if the provided version does not
  // contain the inKind (or a mapping by name defined with AddKnownTypeWithName). Will also
  // return an error if the conversion does not result in a valid Object being
  // returned.