Types are interpreted in Kibana from the mappings saved in Elasticsearch. You'll likely have to update your mappings and reindex.
You can hack a scripted field together to convert the type at runtime if necessary, but it'll have overhead to every request. Can you share what you're trying to do with the number field?