Helper functions to quickly convert compatible objects to a ProductDistribution.

as.ProductDistribution(object)