A value of type 'File' can't be assigned to a variable of type 'ScannedImage'. Please, how can I fix this prooblem, or let it don't show it again. 
A value of type 'File' can't be assigned to a variable of type 'ScannedImage'.

Please, how can I fix this prooblem, or let it don't show it again.