Add sql Type conversions to utils. Refactor models type 'casting'