MySQL specific type converter