Add dataCast* definitions to Ptr/Array Data instances; fixes #7256