- TIBCO BusinessEvents®
- Standard
- Collections

# Collections.toArray()

## Signature

`Object[] toArray ( Object collection, Object ... a )`

## Domain

ACTION

## Description

Returns an array containing all of the elements in this collection in proper sequence (from first to last element)

## Parameters

Name | Type | Description
--- | --- | ---
`collection` | `Object` | The Collection object
`a` | `Object` | The runtime type of the returned array

## Returns

Type | Description
--- | ---
`Object[]` | An array containing all of the elements in this collection in proper sequence. If specified, the runtime type of the returned array is that of the specified array

## Cautions

none