Railo 4.1 Reference
Choose a function:


Converts the data type of a CFML variable to pass as an
argument to an overloaded method of a Java object. Use only
for scalar and string arguments.
[type - quicky]


javacast(string type,any variable):any


The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
type string  Yes Data type to which to convert variable:
bigdecimal (converts to java.math.BigDecimal)
  • boolean
  • byte
  • char
  • int
  • long
  • float
  • double
  • short
  • string
  • null
  • xxx[] where xxx is one of the following: any of the preceding types, except for null
  • a Java class name  
  • variable any  Yes the object to cast