# Casting error in CS 3

**URL:** <https://forum.kirupa.com/t/casting-error-in-cs-3/260032>\
**Category:** flash\
**Created:** [May 11, 2008, 10:08pm UTC](https://forum.kirupa.com/t/casting-error-in-cs-3/260032 "2008-05-11T22:08:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![QRious](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/qrious/32/1597_2.png) [@QRious](https://forum.kirupa.com/u/QRious)\
**Post date:** [May 11, 2008, 10:08pm UTC](https://forum.kirupa.com/t/casting-error-in-cs-3/260032/1 "2008-05-11T22:08:45Z")

</div>

Hi guys,

I maintain an API for which have a huge chunk of its code loaded dynamically from the server. This is all fine and dandy until I try to parse costume class instances back and forward between the current file and the loaded remote API file.

Basically I get a cast error as below:  
TypeError: Error #1034: Type Coercion failed: cannot convert [Nonoba.api.net](http://Nonoba.api.net)::Connection@408e47e1 to Nonoba.api.net.Connection.

My initial ida for a solution was to simply just accept :\* and do  
var conn:Connection = parsedObject as Connection  
but this results in a null value

Any ideas?
