when we define an EPV, internally it will be treated as an object and it gets persisted in the process DB. Wherever EPV is getting utilized and the corresponding value that you are expecting requires a typecasting.
tw.local.someString = ""+tw.epv.definedEPV.variabledefinedInEPV.