<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Q&amp;A &#8211; is, as, and type conversion</title>
	<atom:link href="http://dispatchevent.org/mims/is-and-as/feed/" rel="self" type="application/rss+xml" />
	<link>http://dispatchevent.org/mims/is-and-as/</link>
	<description>Collective thoughts on the Flash Platform, iOS, Unity, and any other technology we use.</description>
	<lastBuildDate>Tue, 24 Jan 2012 12:18:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: adehaas</title>
		<link>http://dispatchevent.org/mims/is-and-as/comment-page-1/#comment-136548</link>
		<dc:creator>adehaas</dc:creator>
		<pubDate>Sun, 01 Feb 2009 12:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=591#comment-136548</guid>
		<description>Thanks for that, nice refresher on this topic!</description>
		<content:encoded><![CDATA[<p>Thanks for that, nice refresher on this topic!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mims H Wright</title>
		<link>http://dispatchevent.org/mims/is-and-as/comment-page-1/#comment-136200</link>
		<dc:creator>Mims H Wright</dc:creator>
		<pubDate>Tue, 27 Jan 2009 19:04:51 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=591#comment-136200</guid>
		<description>Dan &amp; Grant, Good points. I should have mentioned that. Using the type cast can actually convert an object into the other class even if they are not the same type. In fact, Array(obj) should always be replaced with &#039;as&#039; because it&#039;s the equivalent of using new Array(obj). 
I would also recommend always using as for type casting.</description>
		<content:encoded><![CDATA[<p>Dan &#038; Grant, Good points. I should have mentioned that. Using the type cast can actually convert an object into the other class even if they are not the same type. In fact, Array(obj) should always be replaced with &#8216;as&#8217; because it&#8217;s the equivalent of using new Array(obj).<br />
I would also recommend always using as for type casting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Grant Skinner</title>
		<link>http://dispatchevent.org/mims/is-and-as/comment-page-1/#comment-136197</link>
		<dc:creator>Grant Skinner</dc:creator>
		<pubDate>Tue, 27 Jan 2009 16:34:44 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=591#comment-136197</guid>
		<description>It&#039;s also worth noting that the syntax for type casting is an overloaded syntax, which makes it ambiguous. In some cases it casts the type, in others it attempts a type conversion.

TextField(myvar) // casts
String(myvar) // converts

I use &quot;as&quot; for all casting, and only use the above syntax for conversion. This keeps the intent clear.</description>
		<content:encoded><![CDATA[<p>It&#8217;s also worth noting that the syntax for type casting is an overloaded syntax, which makes it ambiguous. In some cases it casts the type, in others it attempts a type conversion.</p>
<p>TextField(myvar) // casts<br />
String(myvar) // converts</p>
<p>I use &#8220;as&#8221; for all casting, and only use the above syntax for conversion. This keeps the intent clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://dispatchevent.org/mims/is-and-as/comment-page-1/#comment-136192</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 27 Jan 2009 15:06:24 +0000</pubDate>
		<guid isPermaLink="false">http://dispatchevent.org/?p=591#comment-136192</guid>
		<description>Hey, should add that Type(object) in some cases actually converts the object, like with XML/XMLList.. one of the slightly arcane aspects of AS3.

Cheers, Dan</description>
		<content:encoded><![CDATA[<p>Hey, should add that Type(object) in some cases actually converts the object, like with XML/XMLList.. one of the slightly arcane aspects of AS3.</p>
<p>Cheers, Dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>

