Clearly your not using the code I posted above as it includes "global MissileTarget.Target" just below the type definition. If you do this then then line "MissileTarget = GetNearestTarget( cam )" will not give an illegal Type conversion error.
If it's still an issue post the code.
If it's still an issue post the code.