# Using an indirect tag in an expression generates error

**URL:** <https://forum.inductiveautomation.com/t/using-an-indirect-tag-in-an-expression-generates-error/6711>\
**Category:** Ignition\
**Created:** [June 14, 2013, 11:54am UTC](https://forum.inductiveautomation.com/t/using-an-indirect-tag-in-an-expression-generates-error/6711 "2013-06-14T11:54:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryankipp](https://avatars.discourse-cdn.com/v4/letter/b/779978/32.png) [@bryankipp](https://forum.inductiveautomation.com/u/bryankipp)\
**Post date:** [June 14, 2013, 11:54am UTC](https://forum.inductiveautomation.com/t/using-an-indirect-tag-in-an-expression-generates-error/6711/1 "2013-06-14T11:54:59Z")

</div>

I am simply trying to perform a multiplication function in a parameterized window. I found an example in the User Manual under the “Tutorials and Helpful Tricks” section for Indirect Bindings and Window Parameters.

The expression is:

tag({Root Container.AnalogTag} + “/InEuMax”) \* .75

The error is:

Type mismatch in operation ‘MULTIPLY’: expected ‘Number’, found ‘Object’

The tag({Root Container.AnalogTag} + “/InEuMax”) by itself does return the correct floating point value from the processor. It only fails when I try to multiply it.

The example code from the User Manual is:

tag(

“Facility/Valves/Valve” +

{Root Container.ValveNumber} +

“/OpenPct”

) \* 100.0

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![CPowell](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@CPowell](https://forum.inductiveautomation.com/u/CPowell)\
**Post date:** [June 14, 2013, 12:59pm UTC](https://forum.inductiveautomation.com/t/using-an-indirect-tag-in-an-expression-generates-error/6711/2 "2013-06-14T12:59:44Z")

</div>

Try using type cast:

```auto
toFloat(tag({Root Container.AnalogTag} + "/InEuMax")) * .75
```

Cheers,  
Chris
