title: Convert all the elements to string irrespective of datatype
body: <p>I am consuming  lot of elements(Fields)  from webservice response. Most of the  elements  datatypes are <code>BigDecimal</code>, <code>BigInteger</code>, <code>xmlGregorianCalender</code>, <code>String</code>, <code>int</code> etc not collections.</p>
  
  <p>My requirement is i need to write a utility method that should return a string value irrespective of type.</p>
  
  <p>I googled everywhere but i was unable to  find the solution.
  Please guide me to achieve this.</p>
  
  <p>I tried the following based on reply's.But i am not getting the  proper output</p>
  
  <pre><code>    BigDecimal big = new BigDecimal(10);
      BigInteger bigInt = new BigInteger("12334");
      String sampleStr1 = ToStringBuilder.reflectionToString(big);
      String sampleStr2 = ToStringBuilder.reflectionToString(bigInt);
      System.out.println("big::"+sampleStr1+"::bigint::"+sampleStr2);
  </code></pre>
  
  <p>Output : </p>
  
  <pre><code>big::java.math.BigDecimal@2afa3ac1[intVal=    &lt;null&gt;,scale=0]::bigint::java.math.BigInteger@72291aff[signum=1,mag={12334},bitCount=0,bitLength=0,lowestSetBit=0,firstNonzeroIntNum=0]
  </code></pre>
  
  <p>Expected output :</p>
  
  <pre><code>big::10::bigint::12334
  </code></pre>