Step 3: Enable developer options and select Stay Awake
Now in the System section of the Settings, you can find a new entry of Developer options, as shown below.
You need to select it, then turn on “Enable developer options”, as shown below.
Once developer options have been enabled, you will need to enable "Stay awake". Sleep on the Chromecast will be disabled once "Stay awake" is enabled.