Eg if I have a string "{1,2,3,4,5}"
I would like to get an int[] object from that string.
I have looked a bit at Janino and Beanshell, but can't seem to find the correct way to get them to do this for me.
I am looking for a generic solution, one that works for all types - not only integer arrays.