If you are struggling with the cast and recasting to a Nest device (Hub etc) I recommend this blueprint:
Works perfect! Try it