Schema is rigid; that’s the point. If the input is incorrect, log an error.
CREATE TABLE tbl (x integer, y real); INSERT INTO tbl VALUES ('001', ' 2.5 '); SELECT * FROM tbl; 1|2.5