RTS: Fix restrictive cast