Accessing values in custom types

Exactly what I was looking for — thank you!