How Do I Distinguish Different Types of Data When Accessing Data in Streams?