I have set up a Matrix field that contains a block type that contains among other things, an asset field. Trying to iterate through the contents of that matrix field works just fine for all other field types but produces the following error when it comes across the asset field type.
Object of class Craft\ElementCriteriaModel could not be converted to string
This is the part of the template that produces the error. "icon" is the asset field type.
{% for block in entry.visitorContentBuilder %}
{% if block.type == "listItemWithIcon" %}
{{ block.icon }}
{% endif %}
{% endfor %}