Railo 4.2 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


Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
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
  • {type}[] - where {type} is any of the preceding types, e.g. string[]
  • null - see also the built in function nullValue()
  • a Java class name  
  • variable any  Yes the object to cast