Handle primitive type (basic way -> need some improvements)