create table tbl (a binary); select cast (a as double) from tbl limit 1;