Index: trunk/source/processes/hadronic/util/src/G4LightMedia.cc
===================================================================
--- trunk/source/processes/hadronic/util/src/G4LightMedia.cc	(revision 819)
+++ trunk/source/processes/hadronic/util/src/G4LightMedia.cc	(revision 1315)
@@ -44,5 +44,5 @@
     G4ParticleDefinition* aPiZero = G4PionZero::PionZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -83,5 +83,5 @@
     G4ParticleDefinition* aKaonZL = G4KaonZeroLong::KaonZeroLong();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -117,5 +117,5 @@
     G4ParticleDefinition* aKaonZL = G4KaonZeroLong::KaonZeroLong();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -176,5 +176,5 @@
     G4ParticleDefinition* aNeutron = G4Neutron::Neutron();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -203,5 +203,5 @@
     G4ParticleDefinition* anAntiNeutron = G4AntiNeutron::AntiNeutron();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -229,5 +229,5 @@
     G4ParticleDefinition* aProton = G4Proton::Proton();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -256,5 +256,5 @@
     G4ParticleDefinition* anAntiProton = G4AntiProton::AntiProton();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -286,5 +286,5 @@
     G4ParticleDefinition* aSigmaZero = G4SigmaZero::SigmaZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -364,5 +364,5 @@
     G4ParticleDefinition* anAntiSigmaZero = G4AntiSigmaZero::AntiSigmaZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -443,5 +443,5 @@
     G4ParticleDefinition* aSigmaZero = G4SigmaZero::SigmaZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -505,5 +505,5 @@
     G4ParticleDefinition* aSigmaZero = G4SigmaZero::SigmaZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -567,5 +567,5 @@
     G4ParticleDefinition* anAntiSigmaZero = G4AntiSigmaZero::AntiSigmaZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -626,5 +626,5 @@
     G4ParticleDefinition* anAntiSigmaZero = G4AntiSigmaZero::AntiSigmaZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -689,5 +689,5 @@
     G4ParticleDefinition* aXiMinus = G4XiMinus::XiMinus();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -773,5 +773,5 @@
     G4ParticleDefinition* aXiZero = G4XiZero::XiZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -862,5 +862,5 @@
     G4ParticleDefinition* aXiMinus = G4XiMinus::XiMinus();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -950,5 +950,5 @@
     G4ParticleDefinition* aXiZero = G4XiZero::XiZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -1036,5 +1036,5 @@
     G4ParticleDefinition* aXiZero = G4XiZero::XiZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
@@ -1137,5 +1137,5 @@
     G4ParticleDefinition* aXiZero = G4XiZero::XiZero();
     
-    const G4double atomicNumber = targetNucleus.GetZ();
+    const G4double atomicNumber = G4double(targetNucleus.GetZ_asInt());
     
     G4DynamicParticle* targetParticle = targetNucleus.ReturnTargetParticle();
