Added support for converting cacheitem result into custom wrapper class