I would ensure the type by overriding parameters reader and writer.