Casting errors, now fixed.