public void Render([NotNull] ITableBuilder tableBuilder, [NotNull] string name, [NotNull] object model) { if (!(model is bool boolToRender)) { throw new InvalidOperationException("model is not bool"); } tableBuilder.RenderCheckBoxValue(name, boolToRender); }