typecast attributes by model type (since aws-sdk v2 infers type)