Infinite Objects in Type Theory