Checks that the second argument to errors.As is a pointer to an interface or to a type implementing error.

See: https://golang.org/pkg/errors/#As