Corrected dot method , now returns nil on a bad cast