'int' is not a subtype of type 'double' dart

C
double myDouble = myInt.toDouble();
Source

Also in C: