Add types and related parameters for type conversion

Another approach of https://github.com/fluent/fluentd/pull/224