# Casting Enum to string and int

**URL:** <https://forums.unrealengine.com/t/casting-enum-to-string-and-int/1196689>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [June 12, 2023, 10:33am UTC](https://forums.unrealengine.com/t/casting-enum-to-string-and-int/1196689 "2023-06-12T10:33:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CircuitC](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CircuitC](https://forums.unrealengine.com/u/CircuitC)\
**Post date:** [June 12, 2023, 10:33am UTC](https://forums.unrealengine.com/t/casting-enum-to-string-and-int/1196689/1 "2023-06-12T10:33:59Z")

</div>

I wanted to use an enum for making my code more verbose. So i can have an enum named States and use that for the index variable when grabbing elements from an array. Aswell as i wanted to print the enum out.

But in both cases i run into the issue that i cant cast an enum to int or string. And in both cases it doesnt accept an enum as a viable type when calling an element in the array or when using the Print() function.

Can someone help me with how i cast enums or tell me if it is not possible
