Secondary inference using IInferCustomProcessor: How to access to ObjectMeta?

It seems that inOptions->getValueArray(OPTION_NVDS_FRAME_META_LIST, frameMetaList) returns ObjectMeta* instead of FrameMeta* in the case of secondary inference.

I can access to ObjectMeta and my problem is solved for now.

But this behavior is of an unexpected kind.
It would be nice if the behavior were documented or corrected.