I want to chnage my entity field type integer to boolean in Drupal

I am newbie into Drupal development. I created a field for my form as integer type and it contain only 0 and 1 as value. now I need to change it to boolean without loosing any data.

I can not find any solution.