Check out example codes for "golang convert interface to concrete type". It will help you in understanding the concepts better.

Code Example 1

type Person struct {
	firstName string
	lastName  string
}
func printIfPerson(object interface{}) {
	person, ok := object.(Person)
	if ok {
		fmt.Printf("Hello %s!\n", person.firstName)
	}
}

Learn ReactJs, React Native from akashmittal.com