How to use spline that is located in another blueprint?

You need to provide more info. Are the objects placed in the level or spawned dynamically? Which blueprint is trying to communicate with one another?

Generally speaking, you need to obtain a reference to your object first, casting is not always necessary.