---
layout: "default"
title: "unsafeDowncast"
description: "Swift documentation for 'unsafeDowncast': Returns the given instance cast unconditionally to the specified type."
keywords: "unsafeDowncast,func,swift,documentation"
root: "/v4.2"
---

<div class="declaration" id="func-unsafedowncast-t_-anyobject-to_-t-type">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-unsafedowncast-t_-anyobject-to_-t-type">func unsafeDowncast&lt;T&gt;(<wbr>_:<wbr> AnyObject, to: T.Type)</a>
        
<div cla