I suppose, although it will break if the configured serializer is not an instance of `JMS\Serializer\SerializerInterface`, as that is the typehint