if(dataCopy instanceof SceneGraphFloatData){
SceneGraphFloatData df=(SceneGraphFloatData)dataCopy;
df.setValue(index, ((aValue.equals(Boolean.TRUE))? (float)1.0 : (float)0.0));
}
else if(dataCopy instanceof SceneGraphDoubleData){
SceneGraphDoubleData dd =(SceneGraphDoubleData)dataCopy;
dd.setValue(index, ((aValue.equals(Boolean.TRUE))? (double)1.0 : (double)0.0));
}
}