# IRapidData Interface

**URL:** <https://tech-community.robotics.abb.com/t/irapiddata-interface/432>\
**Category:** Developer Tools\
**Created:** [July 28, 2005, 1:47pm UTC](https://tech-community.robotics.abb.com/t/irapiddata-interface/432 "2005-07-28T13:47:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ReneK](https://dub1.discourse-cdn.com/flex005/user_avatar/tech-community.robotics.abb.com/renek/32/3229_2.png) [@ReneK](https://tech-community.robotics.abb.com/u/ReneK)\
**Post date:** [July 28, 2005, 1:47pm UTC](https://tech-community.robotics.abb.com/t/irapiddata-interface/432/1 "2005-07-28T13:47:50Z")

</div>

Hello there,

it seems that in RAB5.06, it is not necessary to use the IRapidData Interface anymore. The following code is working:

ABB.Robotics.Controllers.RapidDomain.Num myNum = (ABB.Robotics.Controllers.RapidDomain.Num) myRapidData.Value;

While in RAB5.05 it was necessary to use the IRapidData Interface like this:

ABB.Robotics.Controllers.RapidDomain.IRapidData MyIRapid = MyRapidData.Value;

ABB.Robotics.Controllers.RapidDomain.Num MyNum = (ABB.Robotics.Controllers.RapidDomain.Num) MyIRapid;

Is the “new” way now possible for all Rapid Datatypes? The RAB5.06 manual shows both examples, so for me it is not clear what should be used ?!

BR

Ren?

---

<div class="post-metadata">

**Author:** ![pernillastake](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@pernillastake](https://tech-community.robotics.abb.com/u/pernillastake)\
**Post date:** [September 14, 2005, 11:03am UTC](https://tech-community.robotics.abb.com/t/irapiddata-interface/432/2 "2005-09-14T11:03:49Z")

</div>

You are now able to use the datatypes directly when the datatype is available for the corresponding rapid data type in CAPI.

It is more complex to use the interface style and in the product documentation etc will change towards the typed way.

Note that you should use the following way to “cast” **myRapidData.Value** instead of the C-style though.Then **myNum** is null if wrong type instead of an exception.

 

ABB.Robotics.Controllers.RapidDomain.Num myNum = myRapidData.Value as ABB.Robotics.Controllers.RapidDomain.Num;
