in data/data.go [289:302]
func assert[AssertTo runtime.Object](obj runtime.Object) (AssertTo, error) {
var empty AssertTo
if obj == nil {
return empty, fmt.Errorf("object is nil")
}
v, ok := obj.(AssertTo)
if !ok {
return empty, fmt.Errorf("object is not of type %T", empty)
}
return v, nil
}