Updates from Dan fixing the cast methods so they work with gcc as well
as VC.
Authored by: andy_rushton 2011-02-15
Parent: [r442]
Child: [r444]