How to cast com.inductiveautomation.opcua.types.DataValue?

I would like to convert some value from com.inductiveautomation.opcua.types.DataValue type
to Java class.
When I try to cast the value, the following exception is triggered :

java.lang.ClassCastException: com.inductiveautomation.opcua.types.UInt64 cannot be cast to java.lang.Integer

Is there some utils functions in the sdk to achieve this ?