Converts an object or primitive data type to the primitive int data type.
Syntax
int toPrimitiveInteger(Object objectData) int toPrimitiveInteger(float floatData) int toPrimitiveInteger(double doubleData)
Parameters
Return values
Returns a primitive int value.
Exceptions
DtpIncompatibleFormatException - If the source data type cannot be converted to integer.
Examples
int myInt = DtpDataConversion.toPrimitiveInt(myObject);
See also