Runs the specified object through the Java type to Sleep scalar conversion process. This same process used by HOES.
$object - an object scalar
A scalar (of some sort)
println("Pre Conversion---"); $bytes = cast("this is a string", "b"); println("Class: " . [$bytes getClass]); println("Type: " . typeOf($bytes)); println("Post Conversion---"); $value = scalar($bytes); println("Class: " . [$value getClass]); println("Type: " . typeOf($value));
Pre Conversion--- Class: class [B Type: class sleep.engine.types.ObjectValue Post Conversion--- Class: class java.lang.String Type: class sleep.engine.types.StringValue