Templated access to interfaces