Single Value Conversion
Convert single values. Examples are like:
Object a = ...;
String str = (String)R.toString.run(a);| Type | Func |
|---|---|
| Boolean | toBoolean |
| Integer | toInteger |
| Long | toLong |
| Double | toDouble |
| Decimal | toDecimal |
| String | toString |
| Date | toDate |
| Time | toTime |
| Datetime | toDatetime |
| Func | toFunc |
| R.Pair | toPair |
| SObject | toSObject |