Support decode from interface{}.