Result type Float can't be cast to the desired output type Byte

How did you fix this issue? It is indeed the masks that are causing me to have this error but I’ve checked that they are all of the same type. How do I proceed?