Add getPossibleTypesForComparison method to ValueType