Amadeus interview question

long equals Integer.. Short type casted and equals.