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

Hi,

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 ?

@adam3,

Did you get any resolution for this? I’m struggling with the same thing currently, trying to move from using AttachmentManager into using AttachmentService and having trouble converting from Content to Attachment.