fixed Specified cast is not valid when inserting to mysql
Merge pull request #81 from Cortz/master

fixed specified cast is not valid when inserting to mysql db