Create typed objects when fetching hasMany