public function convert($value)
    {
        $data = dechex($value);

        if (strlen($data) <= 2) {
            return $value;
        }

        $unpack = unpack("H*", strrev(pack("H*", $data)));
        $converted = hexdec($unpack[1]);

        return $converted;
    }