java convert literals to objects
<p>I have an app where a property file contains data in the following format</p>

<pre><code>name=abc#$#String
age=23#$#Integer
</code></pre>

<p>When the value is casted, cast it to values after #$#. is it possible to do this without using a switch or if then else statement. </p>

<p>What I would like to do is have a way to convert the string String or Integer to objects and be able to cast the value without using an if then else block. Something of this sort</p>

<pre><code>String[] tmp = props.getProperty("name").split("#$#");
String name = (tmp[1])tmp[0];
</code></pre>
