<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [Vec2](./rc-js-util.vec2.md) &gt; [castToBaseType](./rc-js-util.vec2.casttobasetype.md)

## Vec2.castToBaseType() method

Although the typed array tuples extend a typed array, they are not structurally compatible. This function returns the argument passed without modification but cast as the underlying storage type, e.g. Float32Array.

**Signature:**

```typescript
castToBaseType(): TArray;
```
**Returns:**

TArray

