A safe way of storing and accessing one value of each type