title: Can I make a type assertion work with a typedef?
body: <p>I have a custom type that allows me to work with an API more conveniently:</p>
  <pre class="lang-golang prettyprint-override"><code>type Object map[string]interface{}
  </code></pre>
  <p>And this thing doesn't work:</p>
  <pre class="lang-golang prettyprint-override"><code>var mockResponse = map[string]interface{}{&quot;success&quot;: true}
  resp, ok := mockResponse.(Object)
  // ok = false
  </code></pre>
  <p>Can I do anything so <code>mockResponse.(Object)</code>'s <code>ok</code> is <code>true</code>? It's basically the same type...</p>