I spoke to Lukasz and he said that i should be one type of all fields. After this change we don't have to cast int to long, anywhere we create APIList instance