After browsing the web for a while looking for an answer to my question I can't find any posts which seem to offer an effective solution to my issue.
Currently I would overload a method for each different data type input.
For example:
public void ex1(String in){
public void ex1(int in){
I would imagine there would be a way to condense this into one line
public void ex1(opt(String in), opt(int in)){
or
public void ex1((String/int) in){
However, as far as I've seen, nobody has presented a reasonable method to use either of these forms.
Overloading does work, but doesn't look as clean as I might like it, so any workarounds or ideas would be appreciated.