fix data cast for cache compatibility