# Method Error.Generic()->cast()

Method cast

  `(array)Error.Generic()`

Description

  Cast operator.

Note

  The only supported type to cast to is `"array"`, which generates an old-style error `({<a style='font-family:courier;' href='../../../predef_3A_3A/Error/Generic/message.html'>message(), <a style='font-family:courier;' href='../../../predef_3A_3A/Error/Generic/backtrace.html'>backtrace()})`.