# Column Expressions Guidance: Dynamically set Column Type

**URL:** <https://forum.knime.com/t/column-expressions-guidance-dynamically-set-column-type/47003>\
**Category:** KNIME Analytics Platform\
**Tags:** flow-variables, node\
**Created:** [September 12, 2022, 11:50am UTC](https://forum.knime.com/t/column-expressions-guidance-dynamically-set-column-type/47003 "2022-09-12T11:50:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ArjenEX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@ArjenEX](https://forum.knime.com/u/ArjenEX)\
**Post date:** [September 12, 2022, 12:24pm UTC](https://forum.knime.com/t/column-expressions-guidance-dynamically-set-column-type/47003/2 "2022-09-12T12:24:13Z")

</div>

Hi @mwiegand

You need to use the actual data class. For string it’s `org.knime.core.data.def.StringCell` , for integer it’s `org.knime.core.data.def.IntCell`.

![image](https://forum-cdn.knime.com/uploads/default/original/3X/9/c/9c6ec0585ee0fceb7f33b325f361dab98ee394fb.png)

You can derive this information from the Flow Variable section by assigning a temporary field to it. How to do this:

> [@Flow Variable Names](https://forum.knime.com/t/flow-variable-names/46042/2):
>
> Hi @rfeigel Guess who’s back laughing Hack modus on: Go to any node → open the flow variable section → fill in random numbers in the text box that is located after the variable and run the node → open the node preview → switch to the Flow Variables tab → bingo. [image] Hopefully this will save you some time in the future!

Wherever you create this, if you pass this value to the Column Expression, cell\_class flow variable like you have found already, it will work.

Hope this helps!

---

_[View the full topic](https://forum.knime.com/t/column-expressions-guidance-dynamically-set-column-type/47003)._
