Is there a simple way to convert any value direct to String in production code? Try using string.valueOf(variableName); That should solve your problem.