Consistent use of size_t for casting pointers to integer type.