# Boolean Array type and Integer type data conversion

**URL:** <https://forum.inductiveautomation.com/t/boolean-array-type-and-integer-type-data-conversion/32684>\
**Category:** General Discussion\
**Created:** [February 27, 2020, 11:12pm UTC](https://forum.inductiveautomation.com/t/boolean-array-type-and-integer-type-data-conversion/32684 "2020-02-27T23:12:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuehuiyan](https://avatars.discourse-cdn.com/v4/letter/y/48db29/32.png) [@yuehuiyan](https://forum.inductiveautomation.com/u/yuehuiyan)\
**Post date:** [February 27, 2020, 11:12pm UTC](https://forum.inductiveautomation.com/t/boolean-array-type-and-integer-type-data-conversion/32684/1 "2020-02-27T23:12:23Z")

</div>

Is there a function to convert a boolean array tag into an integer typa tag? and the other way around, is there a way to convert a integer type tag into a boolean array type tag?  
I use it in the tagEvent -\> Value Changed, here i run the script to assign an Integer to a Boolean Array type tag (memory tag)  
I also use it in the tagEvent -\> Value Changed, here i run the script to assign an boolean array type tag value to a Integer type tag (OPC tag)  
In the scripts, i need to do the conversion.  
Thanks for help
