Of course you use type IChildCommands:
vb.net Code:
  1. Dim mychild As IChildCommands = DirectCast(Me.ActiveMdiChild, IChildCommands)