How to use wildcard on switch strings

Thank you Chitolocz for reply my question.
Finally I solved my problem with create an array.


But I have another question. Can I make dynamic name for casting?