text: {% macro safe_cast(field, type) %}
    {{ return(adapter.dispatch('safe_cast', 'dbt_utils_justos') (field, type)) }}
  {% endmacro %}
  
  
  {% macro default__safe_cast(field, type) %}
      {# most databases don't support this function yet
      so we just need to use cast #}
      cast({{field}} as {{type}})
  {% endmacro %}
  
  
  {% macro snowflake__safe_cast(field, type) %}
      try_cast({{field}} as {{type}})
  {% endmacro %}
  
  
  {% macro bigquery__safe_cast(field, type) %}
      safe_cast({{field}} as {{type}})
  {% endmacro %}
  