Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 621 Bytes

DynamicCast.md

File metadata and controls

37 lines (24 loc) · 621 Bytes

DynamicCast Class

SUPPRESSWARNINGS

DynamicCast is a class that provides a method to cast a value to a specified type.

Since

11/16/2024

Author Zackary Frazier

Methods

castTo(castTo, value)

SUPPRESSWARNINGS

Given a type and a value, cast the value to the specified type.

Signature

public static Object castTo(String castTo, Object value)

Parameters

Name Type Description
castTo String String - ApexTypes
value Object Object

Return Type

Object

,[object Object]

Throws

IllegalArgumentException: