package main

import "fmt"

func main() {
	var a bool
	var i interface{}
	i = false

	a, a = i.(bool)
	fmt.Printf("%t\n", a)

	fmt.Printf("---\n")

	a, a = convert(i)
	fmt.Printf("%t\n", a)
}

func convert(i interface{}) (bool, bool) {
	v, ok := i.(bool)
	return v, ok
}
