<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>albel06</author_name>
  <author_url>https://blog.hatena.ne.jp/albel06/</author_url>
  <blog_title>あるべるのIT関連メモ</blog_title>
  <blog_url>https://albel06.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>ほんとはオプショナル型の〜とか説明が必要なのだけど as アップキャストなど確定的なキャストに使用。 as! 強制キャスト。C++でいうところのreinterpret_cast。 強制キャストなので実行時エラーを起こす可能性がある。 as? C++でいうところのdynamic_cast。 キャストに失敗した場合はnilを返す。 とりあえずざっくりとC++プログラマ向けの対比。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Falbel06.hatenablog.com%2Fentry%2F2017%2F11%2F20%2F233146&quot; title=&quot;Swift - ダウンキャスト(as, as!, as?) - あるべるのIT関連メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-11-20 23:31:46</published>
  <title>Swift - ダウンキャスト(as, as!, as?)</title>
  <type>rich</type>
  <url>https://albel06.hatenablog.com/entry/2017/11/20/233146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
