resource use, casted classes, read out of resource cost