One has an unnecessary cast and the other doesn’t.
createMeshShape() only takes a spatial so casting to Node does absolutely nothing except make the compiler work slightly harder maybe.
Edit: oh, and the first one will throw an exception if terrain is not a Node… but they are literally calling the exact same method, passing the exact same reference, otherwise.