To use implicit typecasting, you can use:

code:
$Kb = (0.0 + $volsize) / 1024

I think you should be very carefull when using Val()
If you use Val() on a variable containing a value bigger than the largest possible integer, you get unpredictable results.

Lonkero,
I know the implicit typecating is a finding from one of the KiX-golf games, but maybe we should be careful when using it on big values.
In this situation we might as well use the CDbl()

The code above works in v. 4.10 and 4.11b2

-Erik