Add sanity check for passed prop object type