Made type parameters work for retrieval of a datum