How to get proper Object(Page,Space,Attachment) from ContentService


SpaceManger.getSpace or pageManager.getPage or AttachementManger.getAttachment has been marked as deprecated and we should using new API’s such as SpaceService.find() or ContentService.find() etc. Those finders returns Content as com.atlassian.confluence.api.model.content.Content but not original object which was Page or Space or Attachment. Each of those original classes had own methods to use. For example: Attachment has method : getAttachmentData(attachment) but content object doesn’t. So how I can convert / migrate / create or whatever that Content to those object to get access of methods they have ? Or is there another way how to get those methods from content ?