as_integration function

Convert objects to integration class