Fix for DATE <-> DECIMAL comparability causing #510
Add isCastableTo method on PDataType