<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>saba1024</author_name>
  <author_url>https://blog.hatena.ne.jp/saba1024/</author_url>
  <blog_title>saba1024のブログ</blog_title>
  <blog_url>https://saba1024.hateblo.jp/</blog_url>
  <categories>
    <anon>Groovy</anon>
  </categories>
  <description>これはG* Advent Calendar 17日目の記事です。 ある値を型Aから型Bに変換するといったコードは頻繁に出てきますよね。 キャストで行えるものが最もシンプルですが、キャストだと変換できないパターンというものが大量に存在します。 例えば以下のコードはそれぞれ例外が発生します。 Integer a = &quot;123&quot; Integer a = (Integer) &quot;123&quot; 例外の内容は共に、キャストできません、というものです。 org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsaba1024.hateblo.jp%2Fentry%2F2017%2F12%2F17%2F091338&quot; title=&quot;Apache Groovy &amp;quot;as&amp;quot; オペレータの正体 - saba1024のブログ&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-12-17 09:13:38</published>
  <title>Apache Groovy &quot;as&quot; オペレータの正体</title>
  <type>rich</type>
  <url>https://saba1024.hateblo.jp/entry/2017/12/17/091338</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
