Adding dataCast1 and dataCast2 methods to the Data instances of Ptr, ForeignPtr, and Array