[Solved] Cannot implicitly convert type ‘decimal’ to ‘int’. An explicit conversion exists (are you missing a cast?)


You have the possibility to declare the variable as decimal, like this:

decimal caloriesBurned;

solved Cannot implicitly convert type ‘decimal’ to ‘int’. An explicit conversion exists (are you missing a cast?)