Change PatrameterType to a class, so that consumers can easily add their own types and conversions.