Fix bug in cache.put
Merge pull request #303 from lakshmi-kannan/bf_fix_class_cast

Bf fix class cast