# ERROR : 1067: Implicit coercion ?!

**URL:** <https://forum.kirupa.com/t/error-1067-implicit-coercion/240166>\
**Category:** Uncategorized\
**Created:** [September 30, 2007, 2:55am UTC](https://forum.kirupa.com/t/error-1067-implicit-coercion/240166 "2007-09-30T02:55:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saumya](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/saumya/32/1761_2.png) [@saumya](https://forum.kirupa.com/u/saumya)\
**Post date:** [September 30, 2007, 2:55am UTC](https://forum.kirupa.com/t/error-1067-implicit-coercion/240166/1 "2007-09-30T02:55:48Z")

</div>

I am developing a Flex application where in my Main file is an MXML file and I think of it as a “View”.I have a “Controller” class which has all the necessary codes in it. The problem is when I am trying to make one object of the “Controller” in the view class, it gives me the following Error !! ?

```auto
1067: Implicit coercion of a value of type Class to an unrelated type view_report.

```

My “Controller” class is in the class path and the code I am writing in the script tag is as below

```auto
<mx:Script>
    <![CDATA[
    import com.saumya.Controller;
    private var controller:Controller=new Controller(this);
    ]]>
</mx:Script>

```
