What is the purpose of these checks? Do you suspect that assignment won't work for Eigen::Vector4f? :)