Adding a ref var future

Initializing a ref var with a casted variable results in an internal error during function resolution.