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