Convert all the tree sizes and leaf index to int64_t.