> In my C++ CNI file I access a java ArrayList which contains several > instances of my class ItemVersionStatistics. > > When I enter the line, > ItemVersionStatistics *ivs = (ItemVersionStatistics) > arrayListVariable->get(0); You are typecasting to a ItemVersionStatistics, not to a pointer to it. Try: ItemVersionStatistics *ivs = (ItemVersionStatistics *) arrayListVariable->get(0);