This should be using a member function of IFormatPartitioner, not casting it to the derived implementation.