---
lang: en
title: 'API docs: repository.buffertype.coerce'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.buffertype.coerce.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [BufferType](./repository.buffertype.md) &gt; [coerce](./repository.buffertype.coerce.md)

## BufferType.coerce() method

**Signature:**

```typescript
coerce(value: any, options?: Options): any;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | any |  |
|  options | [Options](./repository.options.md) | _(Optional)_ |

**Returns:**

any


