Q: Convert CharSequence to BigDecimal I did some search on this and all I found was that BigDecimal has a constructor that we can pass String to it and it will convert it for us.
But in my case what I have is a java.lang.CharSequence and what I need it to be is BigDecimal
What is the correct way to do this conversion? 

A: new BigDecimal(myCharSeq.toString())


A: I'd use CharSequence.toString together with the constructor you mentioned. toString documentation:

Returns a string containing the characters in this sequence in the
  same order as this sequence. The length of the string will be the
  length of this sequence.

This turns into:
new BigDecimal(mySequence.toString());


A: Call toString() on the CharSequence and build BigDecimal out of it. Javadoc is your friend.

A: Use the .toString method of CharSequence Interface
I have corrected my self actually CharSequence is an interface which has its own toString() method. 
toString(); -- Returns a string representation of the object.
Refer the ofiicial docs of CharSequnce Interface http://docs.oracle.com/javase/6/docs/api/java/lang/CharSequence.html
BigDecimal bigDecimal = new BigDecimal(charSeq.toString());


A: Like this
StringBuilder sb = new StringBuilder(charSequence.length());
sb.append(charSequence);
BigDecimal bigDecimal = new BigDecimal(sb.toString());

This protects you in case there's a problem with the charSequence concrete class implementation of toString().  CharSequence is an interface that could be backed by a user written concrete class.
