presto-spi/src/main/java/io/prestosql/spi/type/SmallintType.java/SmallintType/getLong
class SmallintType:    @Override
    public long getLong(Block block, int position)
    {
        return (long) block.getShort(position, 0);
    }