GetSupportedContentTypes to take in declared and runtime type.