There is a tiny, important and a bit confusing thing to remember while dealing with Interfaces. I recently faced an issue while asserting a variable to a particular interface type. Even though I had defined all the methods to the struct type mentioned in an interface, I wasn’t able to assert it.