code: func SliceInterfacesToManagedObjectReferences(s []interface{}, t string) []types.ManagedObjectReference {
  	var d []types.ManagedObjectReference
  	for _, v := range s {
  		d = append(d, types.ManagedObjectReference{
  			Type:  t,
  			Value: v.(string),
  		})
  	}
  	return d
  }
docs: // SliceInterfacesToManagedObjectReferences converts an interface slice into a
  // slice of ManagedObjectReferences with the type of t.