BigDecimal represents a large integer, in general, many integers have a maximum value, but sometimes we need to deal with more than this maximum value, this time there is a class bigdecimal such as the expression of large values, this error should be the type conversion process problems.
Data is taken out of the database, the integers in the database are converted to BigDecimal types, regardless of type, they cannot be cast to a string type, the cast will error, and the cast character is used in the reference type for the parent class of the rotor class. These classes implement the ToString method, which can be converted to a string type by this method.
The integer corresponding to the database LATITUDE:
Object lat = mapparamfirst.get ("LATITUDE");
System.out.println (Lat.tostring ());
Java.math.BigDecimal cannot is cast to java.lang.String