Object returnValue = value;
if (strConv != null)
{
// Persisted as a String, so convert back
String strValue = (String)value;
returnValue = strConv.toObject(strValue);
}
else if (longConv != null)
{
// Persisted as a Long, so convert back
Long longValue = (Long)value;