AsCausalImpact function

Coercion to a CausalImpact object