Casting without interface definition