Allow typesafe retrieval from template model.