Im using the following code that the fieldValue can have simple property , there is a way to check before im doing this code if fieldValue is not contain object that cannot be cast to string ?to avoid dump
keyVal.put(fieldName, (String) fieldValue);