Fixed cast related crash with MBS TE and Railcraft hidden blocks