static cast(name, type) {
    return /** @type {?} */ (name);
  }
Cast a string into the tagname for the associated constructor.

@template T
@param {string} name
@param {function(new:T, ...?)} type
@return {!goog.dom.TagName<T>}