Implementaion of map map_parameter with cast.