Fix for DATE to DECIMAL comparability
Add isCastableTo method on PDataType, fix javadoc warnings