Convert Environment to interface type