Eigen::Affine3f is typedef Eigen::Transform<float, 3, Eigen::Affine> . According to the link , the type has a member function MatrixType & matrix () , which gives you the matrix interface.
Eigen::Matrix4f a; Eigen::Affine3f b; b.matrix() = a;
source share