title: DynamoDb converting Attribute Values to Types
body: <p>Is there a more efficient way of converting dynamo db data into concrete types? For example, when I query the data everything is in:</p>
  <pre><code>List&lt;Dictionary&lt;string, AttributeValue&gt;&gt;
  </code></pre>
  <p>Is it possible to easily convert the type without having to loop through each item and doing this all manually?</p>
  <p>For example I am doing:</p>
  <pre><code>    return items.Select(item =&gt; new Connection
          {
              ConnectionId = Guid.Parse(item[&quot;connectionId&quot;].S),
              ClientId = item[&quot;clientId&quot;].S,
              ProviderId = item[&quot;providerId&quot;].S,
              Scopes = item[&quot;scopes&quot;].SS.ToArray(),
              CredentialsId = item[&quot;credentialsId&quot;].S,
              Evidences = ToEvidences(item[&quot;consentEvidences&quot;].L)
          })
          .ToList();
  </code></pre>
  <p>This then returns a list of my type <code>Connection</code> however I am explicitly mapping each field. Is there an easier way or a helper library that can do the mapping?</p>