Added warning suppression for unchecked casts - they're fine.