Add isCastableTo method on PDataType