ClassCastException: com.android.internal.telephony.PhoneProxy
<p>I'm newbie in Android.</p>

<p>I'm programing Instrumentation Tests for SIM ToolKit (STK)</p>

<p>I need to use CommandsInterface which is available only in PhoneBase Interface.
Once I have a Phone i'd like to use the following line:</p>

<pre><code>private Phone   mPhone;
private Context    mContext;
private Handler    mHandler;
private CommandsInterface            mCmdIf;
private PhoneBase    mPhoneBase;

mPhoneBase = ((PhoneBase)mPhone);  &lt;==== uncaught exception 
mCmdIf = mPhoneBase.mCM;
</code></pre>

<p>It compiled successfully, however gives uncaught exception (group=0x4001b188)
Please advice how to overcome this issue.
Thanks In Advance
Micha</p>
