This should usually be handled by the Driver, which uses the types returned by MySQL to convert them to the proper Haxe types. I don't think that's very nice to have to do the wrapping by hand when it's not necessary.