I have the following code:

```
package main

type MyInterface interface {
    Test()
}

type MyType struct {

}
func (m MyType) Test(){}

func AcceptInterface(i *MyInterface){
}

func main() {

    object := &MyType{}
    AcceptInterface(object)
}

```

I was expecting this to work, because MyType implements MyInterface, but I get:

> 
> cannot use object (type \*MyType) as type \*MyInterface in argument to
>  AcceptInterface: \*MyInterface is pointer to interface, not interface
> 
> 
> 

I tried doing type assertion: object.(MyInterface), but that doesn't work either.

How can I accomplish this?