How to add custom valueInfo for primitive value/data type in camunda?

I have a scenario where each variable value in a workflow has associated metadata. My goal is to store this metadata in Camunda using the valueInfo property of the variable and retrieve it through an API from an external task worker client. This way, the external task worker can execute specific business logic based on the metadata stored in the valueInfo.

Additionally, I prefer not to store the values as Objects. Instead, I would like to use primitive data types along with the metadata stored as valueInfo. Is there a way to accomplish this ?