Cast attachments to a special Restforce::Attachment type.